RENAME CLASS Command
Renames a class definition contained in a .VCX visual class library.
Specifies the name of the class definition that is renamed.
- OF ClassLibraryName
Specifies the name of the .vcx visual class library containing the class definition to rename. If you don't specify a file extension in ClassLibraryName, Visual FoxPro automatically assigns a .vcx extension.
- TO ClassName2
Specifies the new name of the class definition.
The following example uses CREATE CLASSLIB to create a visual class library named myclslib. A class named myform based on the Visual FoxPro Form base class is created with CREATE CLASS and is stored in the myclslib visual class library. RENAME CLASS is used to change the class name from myform to yourform.
CREATE CLASSLIB myclslib && Creates a new .VCX visual class library CREATE CLASS myform OF myclslib AS "Form" && Creates new class RENAME CLASS myform OF myclslib TO yourform && Change class name