GoOffline
This command returns a True / False regarding the attempt to close the socket connecting the mobile client to the server. This will make the device go from THIN client mode to a MOBILE disconnected state.
Group: Device Extensions
Syntax: [bOK =] Device.GoOffline([vUser], [vMenu], [vForm])
bOK (Boolean) Optional – returns a True if the mobile device successfully closes the socket to the server. Since the thin client is shut down with this command, evaluating the response variable will never be reached unless there is a failure.
vUser (Variant) Optional – If a user is specified then the device will set the current user and load the menu associated with the user bypassing the login screen.
vMenu (Variant) Optional – Specifying a specific menu requires that the optional User parameter be filled in. The User parameter will still load the default menu for that user but then the Menu parameter will load, in addition. This means that if the user backs out of the specified menu the server will display the user’s default menu.
vForm (Variant) Optional – If the form is specified then the form will be loaded after the specified menu or the default menu. The Form depends on the UserID being filled in.
Example:
Dim bOK as Boolean
bOK = Device.GoOffline
bOK = Device.GoOffline("Sam")
bOK = Device.GoOffline("Sam", ,"IMASTER")
bOK = Device.GoOffline("Sam", "BasicApps", "IMASTER")