DEFINE CLASS Command - ADD OBJECT Clause
Adds objects from other classes to the class definition.
[ADD OBJECT [PROTECTED] ObjectName AS ClassName2 [NOINIT] [WITH cPropertylist]] |
Parameters
- [ADD OBJECT [PROTECTED] ObjectName AS ClassName2
-
Specifies to add an object from a Visual FoxPro base class, user-defined class or subclass, or an ActiveX custom control to the class definition. The PROTECTED keyword prevents access and changes to the object's properties from outside the class or subclass definition.
- [NOINIT]
-
Specifies to not execute the Init method of the object when adding it.
- [WITH cPropertyList]]
-
Specifies a list of properties and their values for the object that you add to the class definition. For more information, see the Examples section.
Remarks
Example
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08