Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set value to be empty independent on type('this.value')
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00300386
Message ID:
00300405
Vues:
26
>Hi everyone,
>
>I'm creating SetDefault method for our valrange class. This method should set empty value, e.g. '' for character string, {} for date, etc. I'm wondering is there a way to set it by one command, or I need to check type('this.value') for each cases?

The only thing I can think of that works universally is setting the value to null which is not really empty. To the best of my knowledge, to properly do this based on data type, you would have to use a case statement and the Type() function.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform