Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
0 length string is not recognized ???
Message
De
01/01/2002 04:15:06
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00597801
Message ID:
00599555
Vues:
17
>Hah? As long as SET EXACT is Off comparing any character expression to the empty string on the right would return .T.

A more reliable way to check for an empty string, regardless of the setting of EXACT, is:
    IF LEN(ALLTRIM(lcMyVariable)) = 0
        do processing for zero length variable
    ENDIF
David M. Stowell
Ravenslake Consulting
Chicago, Illinois

e-mail: davidstowell@ravenslakeconsulting.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform