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: