Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Confusion over NULL
Message
From
13/03/2007 21:49:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
13/03/2007 21:02:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01203230
Message ID:
01203239
Views:
17
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform