Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equivalent of Nothing in VB
Message
 
 
À
08/06/2005 17:24:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01021162
Message ID:
01021640
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform