>>if type('this.toptoolbar') != 'O'
>> set classlib to toolclass
>> this.toptoolbar = createobject('toptoolbar')
>> release classlib toolclass
>>endif
>>
>
>Or, in VFP6, NEWOBJECT() can instantiate an object from a class from without having to add it to your SET CLASSLIB list:
>
>this.toptoolbar = NEWOBJECT('toptoolbar','toolclass')
This is an old thread, isn't it? That was vfp5 code - but that's a good idea you have.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.