Class and Object Manipulation
Visual FoxPro provides two special operators for object programming: the dot operator (.) and the scope resolution operator (::). Visual FoxPro also adds commands that enable you to create a class, and to create and add objects to a class.
Operator, Command, Function | Description |
---|---|
. (Dot operator) | Scopes objects to their parents and properties, events, and methods to objects. |
:: (Scope resolution operator) | Calls a parent class method from within the subclass. |
CREATEOBJECT( ) | Creates an object from a class, a subclass, or an OLE object. |
DEFINE CLASS with ADD OBJECT clause |
Creates a class definition. The ADD OBJECT clause adds an object based on an existing class or subclass at design time. |
GETOBJECT( ) | Returns a reference to an OLE object. |
For more information about using classes and objects, see Object-Oriented Programming.
See Also
:: Scope Resolution Operator | CREATEOBJECT( ) Function | DEFINE CLASS Command | GETOBJECT( ) Function | Data Transfer and Arrays | Data Manipulation | Null Value Handling