defpt

defpt may be used to specify the default decimal point position relative to the right of the field. A value of zero indicates a default just following the last digit entered. If this parameter is omitted, there will be no default. (If this parameter is passed but you do not want a default, set it to -1.)

The action of defpt depends on whether the "." (allow decimal point) type code is used. If it is, then any default decimal points will actually be inserted into (and returned in) the field. If the "." code is not specified, any default decimal points will be inserted for display purposes only.

Note that the type codes $ and H will automatically set defpt to 2 if "." not specified, and 0 if it is specified. However, you can over-ride this by setting defpt to anything you want. Also note that you can set defpt to -2 to edit currency in whole numbers without a decimal point.

Note also that in multi-line mode (i.e. when type |M or ||M is specified), defpt is re-interpreted as the display height of the control in rows.