SaveAs Method

Applies To   See Also

Saves an object as an .scx file.

Syntax

Object.SaveAs(cFileName [, oObjectName])

Arguments

cFileName

Specifies the .scx file to which you want to save the object.

oObjectName

Specifies a reference to a DataEnvironment object.

Remarks

Use the SaveAs method to create a form or form set and save it as an .scx file. The SaveAs method is only available during an interactive Visual FoxPro session.

When you use the SaveAs method, all the properties, events, and methods associated with the object are stored as as well. Note that only objects created from Visual FoxPro base classes can be saved. User-defined classes cannot be saved. See DEFINE CLASS for a listing of Visual FoxPro base classes.