Share via


StartMode Property

Contains a numeric value that indicates how an instance of Visual FoxPro was started. Read-only at run time.

ApplicationObject.StartMode

Remarks

The following table lists the numeric values the StartMode property can contain and how the instance of Visual FoxPro was started.

Value Description
0 A development version of Visual FoxPro was started in an interactive session.
1 Visual FoxPro was started as an application object. For example, the following command creates an instance of Visual FoxPro as an application object:
oMyObject = CREATEOBJECT('VisualFoxPro.Application')
2 Visual FoxPro was started as an out-of-process .exe automation server or as an Active Document run from either the development environment or Microsoft Internet Explorer.
3 Visual FoxPro was started as an in-process .dll automation server.
4 Visual FoxPro was started as a distributable .app or .exe file.
5 Visual FoxPro was started as an in-process .dll automation server for multithreaded use.

For additional information about using Visual FoxPro to create custom automation servers, see Adding OLE.

See Also

CREATEOBJECT( ) | ServerName Property | SYS(2335) – Unattended Server Mode

Applies To: Application Object | _VFP System Variable