Share via


Object-Oriented Programming Commands and Functions

These commands and functions make it possible for you to create and manipulate classes and objects.

Use

To

:: Scope Resolution Operator

Run a parent class method from within a subclass method.

@ ... CLASS Command

Create a control or object that can be activated with READ.

_WIZARD System Variable

Contain the name of the Visual FoxPro wizard application.

ACLASS( ) Function

Place an object's class name and its ancestor class names into a variable array.

ADATABASES( ) Function

Place the names of all open databases and their paths into a variable array.

ADBOBJECTS( ) Function

Place the names of named connections, relations, tables, or SQL views in the current database into a variable array.

ADD CLASS Command

Add a class definition to a .vcx visual class library.

AGETCLASS( ) Function

Display class libraries in the Open dialog box and create an array containing the name of the class library and class chosen. 

AINSTANCE( ) Function

Place instances of a class into a variable array and returns the number of instances placed in the array.

AMEMBERS( ) Function

Place the names of properties, procedures, and member objects for an object into a variable array.

AMOUSEOBJ( ) Function

Create an array containing information about the mouse pointer position and the object over which the mouse pointer is positioned.

ASELOBJ( ) Function

Place an object reference for the currently selected control or container that exists in the Form Designer, Class Designer, or code editing window into a specified variable array.

AVCXCLASSES( ) Function

Place the information about classes in a class library into an array.

_BUILDER System Variable

Contain the name of the Visual FoxPro builder application.

COMCLASSINFO( ) Function

Return registry information about a COM object such as a Visual FoxPro automation server.

COMPOBJ( ) Function

Compare the properties of two objects and returns True (.T.) if their properties and property values are identical.

CREATE CLASS Command

Open the Class Designer, allowing you to create a new class definition.

CREATE CLASSLIB Command

Create a new, empty visual class library (.vcx) file.

CREATEOBJECT( ) Function

Create an object from a class definition or an Automation-enabled application.

DEFINE CLASS Command

Create a user-defined class or subclass and specifies the properties, events, and methods for the class or subclass.

DISPLAY OBJECTS Command

Display information about an object or a group of objects.

GETINTERFACE( ) Function

Provide access to COM object properties, methods, and events through early binding.

GETOBJECT( ) Function

Activate an Automation object and creates a reference to the object.

LIST OBJECTS Command

Continuously display information about an object or a group of objects

LOADPICTURE( ) Function

Create an object reference for a bitmap, icon, or Windows meta file.

MODIFY CLASS Command

Open the Class Designer, making it possible for you to modify an existing class definition or create a new class definition.

NEWOBJECT( ) Function

Create a new class or object directly from a visual class library (.vcx) file or program (.prg) file without opening the file.  

RELEASE CLASSLIB Command

Close .vcx visual class libraries containing class definitions.

REMOVE CLASS Command

Remove a class definition from a .vcx visual class library.

RENAME CLASS Command

Rename a class definition contained in a .VCX visual class library.

SAVEPICTURE( ) Function

Create a bitmap (.bmp) file from a picture object reference.

_SCREEN System Variable

Specify properties and methods for the main Visual FoxPro window.  

SET CLASSLIB Command

Open a .vcx visual class library containing class definitions.

SET OLEOBJECT Command

Specify whether Visual FoxPro searches the registry when an object cannot be located.

WITH ... ENDWITH Command

Specify multiple properties for an object. 

See Also

Concepts

Class Designer

Reference

Form Designer

Other Resources

Programming

Language Categories