Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What to use, SET EXACT ON or ==?
Message
De
16/02/2007 09:29:18
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01196479
Message ID:
01196493
Vues:
12
My default setting is SET EXACT OFF. This is the setting I want to rely on. As a consequence, a routine that sets settings like this one to preferred defaults, is called in the load of a form with a private datasession.

In case I want an exact match, I purposely use ( not a==b ) instead of ( a<>b ).

In one major application we have to maintain, the default is ON. In that case, we consciously have to 'read' all expressions differently.

>Good Friday Morning to All,
>
>I ran into a problem using <> operator where the following happens:
>
>cTest1 = "This is a sample string"
>cTest2 = "This is a sample string test"
>? cTest2 <> cTest1  && returns .F.
>
>
>Now I am thinking if I should do away with using <> operator because it always relies on SET EXACT ON and just use "==" in ALL my comparisons. What do you think?
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform