How to limit de lenght of edited text in a Grid.
Posted: Fri Feb 03, 2017 12:05 am
When using a grid i use:
ColumnControls {aControlDef1,aControlDef2,...aControlDefN}
For a text TEXTBOX
{ cControlType , cDataType , cInputMask , cFormat }
cControlType = 'TEXTBOX' (Required)
cDataType = 'CHARACTER' , 'NUMERIC' , 'DATE' (Required)
cInputMask = cInputMask (Optional)
cFormat = cFormat (Optional)
For example I can use:
{'TEXTBOX','CHARACTER','AAAAAA'}
Now the length edited text is limited to 5 positions but i cannot enter numbers.
{'TEXTBOX','CHARACTER','!!!!!!'}
Now the length edited text is limited to 5 positions, i can enter numbers but all lower case characters are converted to uppercase.
I need something like the old 'X' picture string in Clipper
{'TEXTBOX','CHARACTER','XXXXXX'}
http://www.itlnet.net/programming/progr ... aee8c.html
Like the 'A' inputmask but including numbers.
Or is there another way to limit the lenght of the typed text (like MAXLENGTH in a TEXTBOX)
Or is there another way to do this ?
Theo
ColumnControls {aControlDef1,aControlDef2,...aControlDefN}
For a text TEXTBOX
{ cControlType , cDataType , cInputMask , cFormat }
cControlType = 'TEXTBOX' (Required)
cDataType = 'CHARACTER' , 'NUMERIC' , 'DATE' (Required)
cInputMask = cInputMask (Optional)
cFormat = cFormat (Optional)
For example I can use:
{'TEXTBOX','CHARACTER','AAAAAA'}
Now the length edited text is limited to 5 positions but i cannot enter numbers.
{'TEXTBOX','CHARACTER','!!!!!!'}
Now the length edited text is limited to 5 positions, i can enter numbers but all lower case characters are converted to uppercase.
I need something like the old 'X' picture string in Clipper
{'TEXTBOX','CHARACTER','XXXXXX'}
http://www.itlnet.net/programming/progr ... aee8c.html
Like the 'A' inputmask but including numbers.
Or is there another way to limit the lenght of the typed text (like MAXLENGTH in a TEXTBOX)
Or is there another way to do this ?
Theo