Writing Class Definitions Programmatically
You can define classes visually in the Class Designer and the Form Designer or programmatically in .PRG files. This section describes how to write class definitions. For more information about forms, see Creating Forms.
In This Section
- Programmatic Class Definitions
Displays the syntax of the basic shell for class creation. - Protection and Hiding of Class Members
Through example, illustrates how to protect or hide properties and methods in a class definition with keywords of the DEFINE CLASS command. - Creation of Objects from Classes
Describes how to create an object based on a saved visual class. - Addition of Objects to a Container Class
Details how to add objects to a container through use of the ADD OBJECT clause in the DEFINE CLASS command or the AddObject method. - Method and Event Code Guidelines
Lays out the rules for authoring event code and methods. - Creating a Set of Table Navigation Buttons
Provides an explanation of how to design and build table navigation buttons through code. - Definition of a Grid Control
Outlines how to define grid control programmatically. - Object Reference Creation
Explains how to make a reference to an object, and describes the benefits of creating references over making copies of objects. - Arrays of Members and Objects
Tells how to define members of classes as arrays and how to build arrays of objects. - Data Storage with Objects
Describes when and how to store data in objects. - Object and Data Integration
Contains information on why integrating objects and data is important.
Related Sections
- Programming in Visual FoxPro
Microsoft® Visual FoxPro® is a powerful interactive data management tool, but you also can access the full power of Visual FoxPro by creating applications. Understanding object-oriented programming techniques and the event-driven model can maximize your programming productivity. - Object-Oriented Programming
With object-oriented programming, you can create self-contained application components that respond to user actions and to the system and which can be easily maintained and reused. - Understanding the Event Model
The event model defines when and how user and system interactions occur.