InputFloat function
Prototype: |
function InputFloat (const caption, msg: string): variant; |
|
Description: |
The InputFloat function displays a dialog allowing the user to input a floating-point number. The dialog has a caption specified by the caption parameter, contains the text specified by the msg parameter and "OK" and "Cancel" buttons. |
|
Syntax: |
variable := InputFloat(Caption,Msg); |
|
Part |
Description |
|
variable |
variable declared as float |
|
Caption |
A string parameter which specifies the caption of the dialog box. |
|
Msg |
A string parameter which specifies the message displayed in the dialog box. |
|
Return value: |
A float variable if the user has entered a valid floating-point number and confirmed it by the "OK" button or a null if the user has pressed the "Cancel" button |
|
Example:
Var height : variant;
Begin
height := InputFloat('Tree height','Enter height, m:');
End.
See also:
InputInteger; InputIntegerWithCounter; InputFloat; InputString; InputText; InputOption; InputOptionWithStartingValue; InputFromList;InputFromListWithStartingValue; InputFromCheckListTab; InputFromListTab
© 2024 IFER-Monitoring and Mapping Solutions