Javascript: Barcode.getUpperTextLength Method
Description
Gets the maximum text length.
Syntax
<void> Barcode.getUpperTextLength(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the upper text length value. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates Barcode.getUpperTextLength in a practical document-editing workflow. It gets the maximum text length.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectUpperTextLength(barcode) {
barcode.getUpperTextLength(
function(result) {
console.log("get upper text length result:", result);
},
onTxError
);
}