Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting of exact
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00554081
Message ID:
00554651
Vues:
7
>>>>Situation: datbase='1VS', set exact =off
>>>>
>>>>in my form I test for [if datbase='1'] and it is .F. but I susp and test it manually at the command prompt and it evaluates to .T. .
>>>>How can this be possible? I now have to say [[if datbase='1VS'] instead.
>>>
>>>To make your code SET EXACT independent you can just use LEFT function
>>>
IF <b>LEFT</b>(datbase,1)='1'
>>
>>But I shouldn't have to do this. I can't trust the exact setting any more?
>>This is ODD behavior to sya the least.
>
>You don't have to if you sure that SET EXACT is OFF. My point is, that code above will work properly with any of SET EXACT settins.

I understand that. It's unfortunate however, this uses more code.
Just a thought
"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."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform