Procedure OnCreate
The OnCreate event is automatically called by the framework. You can use it to open a Workspace and perform any other pre-startup logic such as reading the command line (via the phoCommandLine object) or the Windows registry.
You can also set the value of psAutoOpenWorkspace to open a workspace file other than the standard Config.ws.
This example uses DoOpenWorkspace in the OnCreate event to open the program's workspace
Use cApplication.pkg Object oApplication is s cApplication Procedure OnCreate // Open the Workspace Send DoOpenWorkspace "Order Entry" End_Procedure End_Object // oApplication