ADD CLASS Command
| Visual FoxPro 9.0 SP2 |
| ADD CLASS Command |
| See Also |
|
Adds a class definition to a .vcx visual class library.
ADD CLASS ClassName [OF ClassLibraryName1] TO ClassLibraryName2 [OVERWRITE] |
Parameters
- ClassName
-
Specifies the name of the class definition added to the .vcx visual class library ClassLibraryName2.
If you omit the optional OF ClassLibraryName1 clause, Visual FoxPro searches for the class definition in any .vcx visual class libraries opened with SET CLASSLIB.
Visual FoxPro generates an error if the class definition cannot be located or a class definition with the name you specify already exists in ClassLibraryName2.
- OF ClassLibraryName1
-
Specifies a .VCX visual class library from which the class definition is copied.
- TO ClassLibraryName2
-
Specifies the .vcx visual class library to which the class definition is added. If you specify a .vcx visual class library that does not exist, Visual FoxPro creates the visual class library and adds the class definition to the library.
- OVERWRITE
-
Specifies that a class definition with the same name as the class definition you specify with ClassName is overwritten. An error message is generated if you omit OVERWRITE and a class definition with the same name as ClassName already exists in the .vcx visual class library.
Remarks
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08