Condividi tramite


SaveAs Method

Saves an object as an .scx file.

Object.SaveAs(cFileName [, oObjectName])

Parameters

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

See Also

SaveAsClass Method | SET CLASSLIB

Applies To: DEFINE CLASS | Form | FormSet | _SCREEN