Click to Rate and Give Feedback
MSDN
MSDN Library
Visual FoxPro
Using Visual FoxPro
 How to: Create Class Libraries

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual FoxPro 9.0 SP2
How to: Create Class Libraries (Visual FoxPro)

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

  1. Create a class using the Visual FoxPro IDE.

  2. 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.

    -OR-

  • 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.

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker