hm_getfloat
Get a floating point value using a dialog.
Syntax
hm_getfloat ?label? ?title? ?default_value?
Type
HyperMesh Tcl GUI Command
Description
This command returns a float value by providing you with a dialog.
Inputs
- ?label?
- The entry label. Default is “Value =”.
- ?title?
- The dialog title. Default is “Enter a floating point value…”. label must be specified to use this option.
- ?default_value?
- Optional default float value in the entry field. title must be specified to use this option.
Example
set distance [hm_getfloat "Distance=" "Please specify a distance"]
Errors
None.
Version History
2017.1 - Added new optional default_value argument.