Xbasic

UI_INFO_DLG_DEF_HEIGHT Function

Syntax

Height as C = UI_INFO_DLG_DEF_HEIGHT(C dialog_format)

Height as C = UI_INFO_DLG_DEF_HEIGHT( Title as C )

Height as C = UI_INFO_DLG_DEF_HEIGHT( Expression as C )

Arguments

Title

The title of a visible Xdialog.

Expression

Xdialog code that produces a visible control.

dialog_format

Character

Description

Get the height of the dialog in inches based on a dialog definition.

Discussion

The UI_INFO_DLG_DEF_HEIGHT() function tells you how high the specified Xdialog expression will be.

Example 

In this example, lastname prompt and the field are on same line, so the Xdialog will be .57 inches high.

? ui_info_dlg_def_height("lastname: [.40name]")
= 0.572917

In this example, the lastname prompt and the field are on separate lines (because of the semi-colon after lastname:). The Xdialog will be .72 inches high.

? ui_info_dlg_def_height("lastname:; [.40name]")
= 0.729167

See Also