Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent of Nothing in VB
Message
 
 
To
08/06/2005 17:24:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01021162
Message ID:
01021640
Views:
21
Greg,

>The option of declaring an instance of the object and then setting the variable to Null does not work.

It was a wild shot in the dark. *g*

>This is the same as simply declaring the variable as Null (the variable does not have any real typing associated with it).

Well not exactly...
loNothing = .null.
? type( "loNothing" ) && right now it's a null logical
loNothing = createobject( "form" )
loNothing = .null.
? type( "loNothing" ) && and now it's a null object
loNothing = 0
loNothing = .null.
? type( "loNothing" ) && and now it's a null number
>In short, the "Nothing" in VB is a reference to a null object variable; VFP Null is simply null variable (not of any type). The ActiveX does have another option for declaring what I wanted to do via code -- the other option is via XML and loading the definition and I am now pursuring this method.

Glad you've got another route to go.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform