SECAAppObj::OpenForm
shortSECAAppObj::OpenForm(LPCTSTRlpszFormPathName, BOOLfUseExisting, BOOLfOpenInEditMode)
Scriptable interface to load a form
Defined in: AppObj.cpp
Return Value
error/success code
Parameters
lpszFormPathName
Name of form to load. Use empty string to create a new form.
fUseExisting
If set, switch to existing form, if found. Otherwise open a new form.
fOpenInEditMode
Open the form in edit mode.
Comments
This function is provided as a scriptable interface to be accessed directly by your ActiveScript scripts. Typically a script would use code like the following to open a new form:
Sub LoadFrameButton_Click 'This code will demonstrate how to load an existing form
' Like above, we will need to load the app object first: dim app set app =LoadForm.GetApp
' Now, use the OpenForm method with the following syntax: ' OpenForm( LPCTSTR strFormPathName, BOOL bUseExisting, BOOL bOpenInEditMode) ' strFormName = name of form to load ' bUseExisting = if true and form with this name already exists, open that instead ' bOpenInEditMode = form will be in edit mode on initial load app.OpenForm "TestLoad",FALSE,TRUE
End Sub