Share via


SaveAsClass Method

Saves an instance of an object as a class definition in a class library.

Object.SaveAsClass(ClassLibName, ClassName [, Description])

Parameters

  • ClassLibName
    Specifies the name of the .vcx file in which to store the class definition.
  • ClassName
    Specifies the name assigned to the class.
  • Description
    Specifies the optional description for the class.

Remarks

When you use the SaveAsClass method, all the properties, events, and methods associated with the object are stored as part of the class definition.

See Also

SaveAs Method | SET CLASSLIB

Applies To: ActiveDoc | CheckBox | ComboBox | CommandButton | CommandGroup | Container Object | Control Object | Custom | EditBox | Form | FormSet | Grid | Image | Label | Line | ListBox | OLE Bound Control | OLE Container Control | OptionButton | OptionGroup | PageFrame | ProjectHook Object | _SCREEN | Shape | Spinner | TextBox | Timer | ToolBar