Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public object with array...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00513702
Message ID:
00516240
Vues:
15
>Check set exact settings. Better set it on and use Exact Name match to check.

Nadia,

This si not correct. SET EXACT ON does NOTlcVar1 = "Smith " lcVar2 = "Smi" SET EXACT OFF ?lcVar2 = lcVar1 && .T. SET EXACT ON ?lcVar2 = lcVar1 && .F. * Now the trouble lcVar1 = "Smith " && Note trailing spaces lcVar2 = "Smith" SET EXACT OFF ?lcVar2 = lcVar1 && .T. SET EXACT ON ?lcVar2 = lcVar1 && .T. These report as being equal and they are not * Now the real exact mathcing ?lcVar2 == lcVar1 && .F. And this is always correct even with exact set offThe conclusion, if you want exact string matching use the == and do not depend on SET EXACT ON. Leave SET EXACT OFF always.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform