You can create class libraries when you create classes using the Visual FoxPro IDE or empty class libraries programmatically.
Visual FoxPro stores classes you create using the Class Designer in visual class library (.vcx) files. These classes include visual and non-visual classes. You can also choose to store class definitions in program (.prg) files when using the DEFINE CLASS command to create classes.
To create a class library when creating a class
Create a class using the Visual FoxPro IDE.
In the Store In box of the New Class dialog box, type the name of the class library.
For more information about creating classes, see How to: Create Classes and Subclasses.
To create class libraries programmatically
Use the CREATE CLASSLIB command to create an empty class library.
Include the OF clause in the CREATE CLASS command when you create a class.
For example, the following line of code uses the CREATE CLASSLIB command to create an empty class library named MyClassLibrary:
CREATE CLASSLIB MyClassLibrary
The following line of code includes the OF clause in the CREATE CLASS command to specify the name of the class library that will store the class MyClass, which is based on the Form class.
CREATE CLASS MyClass OF MyClassLibrary AS Form
For more information, see CREATE CLASSLIB Command.