I am blocking certain characters in a get with the following code:
- Code: Select all Expand view
- Function CheckName(oGet)
Local cChar := RIGHT( ALLTRIM(oGet:cText()),1)
IF cChar $ "!@#$%^&*+=[]\|:;,./?<>" .or. cChar=chr(34) .or. cChar=chr(39)
oget:oget:backspace()
oget:editupdate()
MsgInfo("You cannot use "+cChar+" in this field","Invalid Charactor")
endif
Return .t.
Can someone tell me how I would do this with a Combobox?