User Guide

Table Of Contents
144 Flash Lite Specific Language Elements
GetNetworkStatus
Availability
Flash Lite 1.1.
Description
Returns a value indicating the network status of the phone (that is, whether there is a network
registered and whether the phone is currently roaming).
Example
The following example assigns the status of the network connection to the networkstatus
variable, and then uses a
switch statement to update a text field with the status:
networkstatus = fscommand2("GetNetworkStatus");
switch(networkstatus) {
case -1:
/:myText += "network status not supported" add newline;
break;
case 0:
/:myText += "no network registered" add newline;
break;
case 1:
/:myText += "on home network" add newline;
break;
case 2:
/:myText += "on extended home network" add newline;
break;
case 3:
/:myText += "roaming" add newline;
break;
}
Command Parameters Value returned
"GetNetworkStatus"
None. -1: The command is not supported.
0: No network registered.
1: On home network.
2: On extended home network.
3: Roaming (away from home network).