Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equivalent of Nothing in VB
Message
 
À
08/06/2005 13:43:10
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:
01021532
Vues:
18
Greg,

I wonder if explicitly passing by reference would help:
...
.ValidScopes.Add(@loNothing)
...
Aside from that, I'd think you'd need to know what type object is accepted in the Add method and initialize loNothing to that specific type object before setting it to null.

HTH,
Chad

>Below is the code segment:
>
>loNothing = .NULL.
>loText = CREATEOBJECT("CodeMax.TokenSet.4")
>WITH loText
> .Name = "Text"
> .Id = cmTsIdText
> .ValidScopes.Add(loNothing)
>ENDWITH
>
>
>You will need to install the CodeMax control (demo available from http://www.winmain.com) in order to be able to execute the code. The above sample is being converted from a VB example that is included with CodeMax. From the developer of the control, the Nothing keyword in the Add method parameter is required to set the scope to global of the loText object.
_________________________________
There are 2 types of people in the world:
    Those who need closure
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform