Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code is not functioning
Message
From
08/05/2006 18:57:23
 
 
To
08/05/2006 17:47:51
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01120099
Message ID:
01120210
Views:
16
>>Don't forget the standard warning about SET EXACT. With SET EXACT OFF values like "RAMA","JOHNNY" become "RAM" and "JOHN" for comparison purposes and could return an incorrect TRUE. That may be OK in the application, but then again................
>
>Rich,
>Alltrim(THISFORM.COMBO1.Value) was used to force exactness. RAMA,JOHNNY are not on list.
>PS: Inlist was buggy however as Hugo pointed out.
>Cetin

Maybe I wasn't clear about where the "RAMA" and "JOHNNY" might be.
SET EXACT OFF
? INLIST(ALLTRIM("RAMADA"),"RAM","JOHN")
? INLIST(ALLTRIM("JOHNNY"),"RAM","JOHN")
Both of these return TRUE. That may or may not be correct in the context of the application. If it should be false, then a SET EXACT ON is required.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform