Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code is not functioning
Message
De
08/05/2006 18:57:23
 
 
À
08/05/2006 17:47:51
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Divers
Thread ID:
01120099
Message ID:
01120210
Vues:
13
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform