GoOnline

This command returns a True / False regarding the status of opening a socket connection with the server. This will make a disconnected MOBILE client an online THIN client to the server. If the user is going online for the first time the server will present the login screen. If the user goes online with the configured client inactivity timeout value they would see the session as they left it when going mobile. This command will not work for Mobile clients with a startup mode of Disconnected.

Group: Device Extensions


Syntax: [bOK =] Device.GoOnline([vServer], [nPort])

bOK     (Boolean) Optional – return a True if the mobile device is successfully connected to the server. Since the mobile client is shut down with this command, evaluating the response variable will never be reached unless there is a failure.

vServer (Variant) Optional – parameter to specify which server name or IP address should be used. If this is not specified, the registry settings will be used.

nPort    (Long) Optional – parameter to specify which server port number should be used. If this is not specified, the registry settings will be used.

Example:

Dim bOK as Boolean

bOK = Device.GoOnline("192.168.123.45", 21098)