From the VFP help file:
Object.AddObject(cName, cClass [, cOLEClass] [, aInit1, aInit2 ...])
Parameters
cName
Specifies the name used to reference the new object.
cClass
Specifies the class of the object to add.
cOLEClass
Specifies the OLE class of the object to add.
Note If you plan to distribute run-time applications which add ActiveX Controls requiring License key information (for example, Microsoft Treeview and Listview controls), you should not use the AddObject(.....cOLEClass) method. Instead, create and save a subclass of your ActiveX Control to a VCX class library. Then, at run time you can use the AddObject (or NewObject) method to add this OleControl class containing your control.
aInit1, aInit2
Specify parameters passed to the Init event of the new object.
HTH
>How many parameters can the addobject method take. I think there are three, but I'm not sure because I can't find it in help.
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN
If a vegetarian eats vegetables, what does a humanitarian eat?