Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
And/or statement
Message
 
To
03/04/2001 02:50:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00491010
Message ID:
00491303
Views:
7
Thanks all, an old lesson relearned.

>>I was going to implement "IF MOFFICE <> 'SN' OR MOFFICE <> 'VS'" but I had to resort to "IF MOFFICE <> 'SN' AND MOFFICE <> 'VS'". The idea is to only allow entry of SN or VS, thus my reason for attempting to use OR instead of AND.
>
>Tim,
>Multipl solutions as always :)
>
>if !(MSOFFICE='SN' or MSOFFICE='VS')
>if MSOFFICE#'SN' and MSOFFICE#'VS'
>
>I like Rick's here :
>If !inlist(MSOFFICE,'SN','VS')
>if !MSOFFICE$' SN VS '
>
>You say entry then I assume it's something like a textbox. Then just prevent user's input :)
>
>Textbox.Format='M'
>Textbox.InputMask = 'SN,VS'
>
>Cetin
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform