inputmask - content lenght
Posted: Wed Apr 28, 2010 7:33 am
Hi friends,
is there someone can help me to better understand about INPUTMASK?
I've used this (piece) of code
I don't insert any charcater and then I've pressed <Enter>. Inside "TestField()" I've used this code
and I obtain 5 (mambo number...
). Why? I thought: I must obtain 11 - 2 = 9.
The situation it's the same if (but I think it's wrong code) I add property to the control.
Many thanks
is there someone can help me to better understand about INPUTMASK?
I've used this (piece) of code
Code: Select all
DEFINE TEXTBOX <ControlName>
ROW ...
COL ...
....
INPUTMASK '999-999-999'
ONENTER TestField()
Code: Select all
MsgStop(Hb_ValToExp(LEN(ALLTRIM(FormName.ControlName.Value))))
The situation it's the same if (but I think it's wrong code) I add
Code: Select all
MAXLENGHTMany thanks