WireLess Studio Widgets Developer's Guide
WSWDG ContentsWStFactory class reference

FindForm

Indicates if a specific form was created previously.

Ole declaration

VARIANT_BOOL FindFormByName(LPCTSTR sFormName);

VARIANT_BOOL FindFormById(SHORT usFormId);

Parameters
sName
The name of the form.
usFormId
The id of the form.
Return Value

FindForm returns TRUE if the specific form was created before, FALSE otherwise.

Remarks
Example
C#
using WirelessStudioOleWidgets;
WStFactory oFactory = new WStFactory();
short iFormId = 5;
oFactory.CreateFormById(iFormId);
bool bCreated =  oFactory.FindFormById(iFormId);
Visual Basic 6
Public wsForm As New WStForm
Public wsFactory As New WStFactory		
Dim bCreated as Boolean
...
'Form creation 
wsFactory.CreateFormByName "myForm"
bCreated = wsFactory.FindFormByName "myForm"
...
See also

CreateForm | CreateWidget

WStWiget class reference | WStForm class reference | WStFactory class reference | WStError class reference