
79
Class Reference
4.5.2.1
isConnected
The
isConnected
property of the
comm
object contains a read-only boolean specifying
the host connection status. Possible connection values are:
true
– reader is connected to the host.
false
– reader is not connected to the host.
Example:
connected = comm.isConnected;
4.6
Functions
The following section documents functions that enhance the application development
environment.
4.6.1
Dialog
The handheld JavaScript Engine provides the following functions like those defined by
JavaScript in Web browsers:
alert
confirm
prompt
These functions interact with the OHV300 standard GUI display. The OHV300 displays the
name of the function in the GUI status bar and the text associated with the function, and
then waits until a key is pressed. The following subsections describe the operation of each
function in the OHV300 environment.
Similar but more flexible functions are provided in the
gui
object (see section 4.1). For
example, if you want to change the caption on these displays use the
gui
object functions.
4.6.1.1
alert
The alert function displays text in the display area of the standard GUI display. Do not call
this function within onDecode and onCommand event handlers.
Format:
alert(func, text);
Where:
func
– function name; function to be called after displaying the alert. This function does
not take any arguments and returns void.
text
– string; text to display as the alert.
Processing suspends until the operator presses an enter key – either the enter key or the
left softkey defined as OK.
Содержание OHV300
Страница 1: ...FACTORY AUTOMATION MANUAL JAVASCRIPT PROGRAMMING GUIDE...
Страница 88: ...88 Supported JavaScript Core delete function in instanceof new this typeof void...
Страница 93: ...93 Symbology ID Modifier Information...
Страница 94: ...TDOCT 4981_ENG 11 2015...