Hi!
Is there an easy way to let the user only enter numbers ranging from "0..9" into this 3 digits textfield with all other chars not being accepted at all?
Is there an easy way to let the user only enter numbers ranging from "0..9" into this 3 digits textfield with all other chars not being accepted at all?
SuperStrict Local window:TGadget Local tf:TGadget window: TGadget=CreateWindow("My Window",30,20,320,200) tf:TGadget=CreateTextField(4,4,28,20,window) While WaitEvent() Select EventID() Case EVENT_GADGETACTION Select EventSource() Case tf Print "textfield updated" If Len(TextFieldText(tf)) >3 Then SetGadgetText(tf,"") End Select Case EVENT_WINDOWCLOSE End End Select Wend