Partager via


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".

Remarks

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.

See Also

Reference

Name Property

SaveAsClass Method

SET CLASSLIB Command

Other Resources

Methods (Visual FoxPro)