>>>>>>When I use AddObject I have to provide a class for a new object. Can it be a class from a different vcx?
>>>>>>
>>>>>>Thanks
>>>>>
>>>>>Use NewObject in stead!
>>>>And how NewObject adds an object to the form's object colleciton?
>>>
>>>
>>>Not function, method.
>>>The same way as AddObject :o)
>>>thisform.NewObject("objName", [ClassName], [MyOtherClassLib.VCX])
>>
>>Function/method... Whatever...!
>>
>>Kidding aside, thanks for the corrections.
>
>No correction. When I first read the question my first thought was about NewObject() function, but when I read Mark's answer I realise that He wants to add a new object in a form :o)
OK. I actually wrote function, which I thought you had spotted.