Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inlist returns incorrect value
Message
 
To
16/08/2001 15:06:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00544903
Message ID:
00544914
Views:
15
>Try this:
>a = '18'
>? inlist(a,'1')
>
>Prints .T.
>
>Is this a bug?
>
>Thanks
>Robert


Look at your EXACT setting. I like to think of it this way.

If EXACT is off it can be read like:

Does what is stored in a (18) start with '1' The answer would be true.

If EXACT is on then does what is stored in A match exactly with '1' The answer would be False.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Reply
Map
View

Click here to load this message in the networking platform