
68
Class Reference
return null;
return decode;
}
reader.onDecode = onDecode;
See the discussion of the
decode
object in section 4.1
Example:
See the discussion of symbol decoding in section 0.
4.3.2.4
onDecodeAttempt
The
onDecodeAttempt
property of the
reader
object provides processing control to the
application program at the completion of a decode action, before any of the decoded
symbols are passed to
reader.onDecode
.
Format:
function onDecodeAttempt(count)
{
/* processing statements */
}
reader.onDecodeAttempt = onDecodeAttempt;
Where:
count
– number; a count of the number of symbols that were read by a single decode
request.
Note: This method does not return a value.
Example:
var ok = false;
reader.onDecodeAttempt = function(count)
{
ok = count >= 2;
}
reader.onDecode = function(decode)
{
if( !ok )
return false;
return decode;
}
Содержание 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...