Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Addobject method
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01340149
Message ID:
01340153
Views:
18
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?
Previous
Reply
Map
View

Click here to load this message in the networking platform