Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent of Nothing in VB
Message
 
To
08/06/2005 13:43:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01021162
Message ID:
01021532
Views:
20
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
Previous
Reply
Map
View

Click here to load this message in the networking platform