Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strtran()? or chartran()?
Message
 
 
To
19/12/2001 13:57:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00596336
Message ID:
00596344
Views:
25
This message has been marked as the solution to the initial question of the thread.
>Hi All,
>
>I have a textbox where the only valid input is C, E, I or S. I had seen somewhere here a quick 1 line of code way to test for this. But it eludes me. Could someone please jog my memory?
>
>TIA
Hi Mike,

You can put 'M C,E,I,S' into the texbox format property and user wouldn't be able to enter anything else. Otherwise
llOk = INLIST( This.Value, "C", "E", "I", "S")
*OR 
llOk =  This.Value $  "CEIS")
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform