>Is there a command that does the same as CREATE CLASS, but
>without opening the Class Designer? IOW: programmatically
>create a class based on another class stored in a .vcx and
>save it in the specified .vcx
As Steve posted, you can bring the designer up programmatically and close it using the keyboard command. However, I would change the code sample to use
KEYBOARD '{CTRL+W}'
This should save and close automatically, not simply attempt to close and prompt.
You could also use the SaveAsClass method of the object. If you can instantiate the object, then you can use this method to save to a specified class library. You can also specify any comments you want to be associated with the class. Ex.
lox = createobject('myclass')
lox.SaveAsClass('NewClassLib','NewClassName','NewDescription')
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao