Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
0 length string is not recognized ???
Message
 
 
À
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:
00599602
Vues:
18
VFP has EMPTY() function for that.

>>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
    IF <b>EMPTY</b>(lcMyVariable)
>        * Process empty value
>    ENDIF
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform