Links are not active on this page.
 SaveAs Method (Visual FoxPro)

Saves an object as an .scx file.

Object.SaveAs(cFileName [, oDataEnvironment])

Parameters

cFileName

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

oDataEnvironment

Specifies a reference to a DataEnvironment object.

The DataEnvironment object must have its Name property set to "DataEnvironment".

Expand imageRemarks

Applies To: DEFINE CLASS | Form | FormSet | _SCREEN

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 well. Note that only objects created from Visual FoxPro base classes can be saved. User-defined classes cannot be saved. For a complete list of the Visual FoxPro base classes, see Base Classes in Visual FoxPro.

Expand imageSee Also