Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting an empty value
Message
De
13/05/2008 16:28:14
 
 
À
13/05/2008 15:11:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01316738
Message ID:
01316800
Vues:
15
>Is there a simple way (without having to check all the datatypes) to get the equivalent empty value for a variable. For example
>FOO(12) ------------> 0
>FOO("abcd") --------> ""
>FOO(DATE()) --------> { }
>FOO(DATETIME()) ----> { :}
>etc.
>
>I can write FOO if I need to. Just wondering if there is already a feature in the language.

Message#1304214 may be of interest.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform