WireLess Studio Widgets Developer's Guide
WSWDG ContentsWStForm class reference

IsConnected

Call this method to retrieve the current status of the connection with the mobile unit.

Ole declaration

VARIANT_BOOL IsConnected(void);

Parameters
Return Value

IsConnected returns TRUE if the connection with the mobile unit is still active, FALSE otherwise.

Remarks
Example
C#
using WirelessStudioOleWidgets;
WStForm oForm= new WStForm();
bool bIsConnected = oForm.IsConnected();
Visual Basic 6 (Full Example: FieldDemoModule.bas.txt)
Public wsFactory As New WStForm		
...
'Waits for an event and performs an action
'Most of the events received are triggered by checkboxes, that allow the user to modify
'the flags related to the WS_FIELD widget
While (bEnd = False And bResult And wsForm.IsConnected)
...
See also

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