Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Confusion over NULL
Message
De
13/03/2007 21:49:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
13/03/2007 21:02:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01203230
Message ID:
01203239
Vues:
16
As Sergey says, directly assigning a NULL will initialize a variable of type logical.

However, you can assign a correct type first. E.g., your first example can be changed to:
zz = 0 && Make sure it is of type numeric
zz = NULL
? str(zz, 5)
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
Répondre
Fil
Voir

Click here to load this message in the networking platform