Code: Select all
Static nNum1 := 37
...
Local oEditNum1
...
@ 5, 100 EDIT oEditNum1 VAR nNum1 SIZE 47, 21 LIMITTEXT BY 5 CHARS FONT oFont10 PIXEL OF oWnd
Code: Select all
oEditNum1:lLimitText := .T.
oEditNum1:nLimitChars := 5
Code: Select all
Static nNum1 := 37
...
Local oEditNum1
...
@ 5, 100 EDIT oEditNum1 VAR nNum1 SIZE 47, 21 LIMITTEXT BY 5 CHARS FONT oFont10 PIXEL OF oWnd
Code: Select all
oEditNum1:lLimitText := .T.
oEditNum1:nLimitChars := 5
Limitbychars is implemented only for character values, not for numerics. For numerics, appropriate control is TGet.but nothing ... I can enter as much text (numbers, that's it) as you want, the limit is not set in 5 digits.
That is purely your personal taste.GET is not a control that I like to use, because of its "fixed" spacings and lengths, they do not correspond many times with reality, hence the control TEdit is the one that most resembles reality at the time of introduction of data, although with a mask (picture) equal IF that the GET is the most appropriate ... I will go forward in the learning of FW and to see what little problems I'm encountering !!!