Create ClassLib, Add Class, Remove Class, Rename Class
These commands let you maintain class libraries (VCX) in code.
Usage |
CREATE CLASSLIB LibFileName |
Actually, in VFP 6, you can't specify a different extension. No matter what file name you give to CREATE CLASSLIB, the file is created with a VCX extension and the corresponding memo file gets a VCT extension. Even if you surround the file name with quotes, the VCX extension is added at the end. This bug was fixed in one of the service packs for VFP 6. |
Example |
CREATE CLASSLIB MyStuf |
Usage |
ADD CLASS ClassName [ OF CurrentLibrary ] TO NewLibrary [ OVERWRITE ] REMOVE CLASS ClassName OF LibFileName |
Example |
ADD CLASS DateSpin OF CoolStuf TO MyStuf REMOVE CLASS DateSpin OF CoolStuf |
Usage |
RENAME CLASS OldClassName OF ClassLib TO NewClassName |
Example |
RENAME CLASS DateSpin OF MyStuf TO DateSpinner |
See Also |