|
<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > MLGrid Control > MLGrid Control Commands > MLGrid_FormatColNumber |
Description
Force column format as numeric for user data entry.
Syntax
n = MLGrid_FormatColNumber(hGrid, Col, NumberFormat [, Justify [, RGBColor [, WriteLock]]])
Returns
Number
Parameters
Name |
Type |
Optional |
Meaning |
hGrid |
Number |
No |
handle to grid control, the one returned by CONTROL ADD MLGRID ... |
Col |
Number |
No |
Column to be forced |
NumberFormat |
Number |
No |
A floating point number to indicate how many integer and decimal places accept during data entry. For example: 4.2 will accept till 4 integer (from 0 to 9999) and 2 decimals (from 00 to 99). |
Justify |
Number |
Yes |
0=left, 1=right, 2=center |
RGBColor |
Number |
Yes |
Foreground color |
WriteLock |
Number |
Yes |
%TRUE if write protected from user data entry. |
Remarks
MLGrid_Put will still be usable even if cells are write protected
Restrictions
See also
Examples