Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Non-empty string vs. empty string
Message
De
18/02/2009 12:29:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
18/02/2009 12:26:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01382676
Message ID:
01382679
Vues:
60
This message has been marked as a message which has helped to the initial question of the thread.
>
>TA = "Some chars"
>? TA > ""          
>
>
>The above returns .F. Why? A non-empty string should surely be greater than an empty string?

Because of the three following three statements, only one at a time can be true!
a < b
a = b
a > b
Since TA = "" is true, it can't at the same time be greater.

See SET EXACT.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform