RowHeight – PB Docs 126

RowHeight DataWindow expression function


Reports the height of a row associated with a band in a DataWindow object.


Return Values

Long. Returns the height of the row in the units specified
for the DataWindow object if it succeeds, and –1 if an error occurs.


When you call RowHeight in a band other
than the detail band, it reports on a row in the detail band. See GetRow for
a table specifying which row is associated with each band for reporting

When a band has Autosize Height set to true, you should avoid
using the RowHeight DataWindow expression function
to set the height of any element in the row. Doing so can result
in a logical inconsistency between the height of the row and the
height of the element. If you need to use RowHeight,
you must set the Y coordinate of the element to 0 on the Position
page in the Properties view, otherwise the bottom of the element
might be clipped. You must do this for every element that uses such
an expression. If you move any elements in the band, make sure that
their Y coordinates are still set to 0.

You should not use an expression whose runtime value is greater
than the value returned by RowHeight. For example,
you should not set the height of a column to rowheight() + 30.
Such an expression produces unpredictable results at runtime.


This expression for a computed field in the detail
band displays the height of each row:

See Also

Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x