Intermec Janus 2020 Reference Manual - Im_Get_Length
im_get_length
3-35
3
im_get_length
Purpose:
This function retrieves the length of the last input of the type selected. Use
this function after calling the im_receive_input function to get the data. The
length is saved when the call is initiated.
Syntax:
With Intrmecd_IO, Intrmecp_IO;
Use Intrmecd_IO, Intrmecp_IO;
function im_get_length (
origin : IN IM_ORIGIN
) return System.Word;
IN Parameter:
The origin parameter is one of these constants:
IM_LABEL_SELECT
Label selected
IM_KEYBOARD_SELECT Keypad selected
IM_COM1_SELECT
COM1 selected
IM_COM2_SELECT
COM2, scanner port selected (2010 and 2050)
IM_COM4_SELECT
COM4 selected (RF only)
OUT Parameter:
None.
Return Value:
This function retrieves the length of the last input read.
Notes:
For this function, all COM input is considered to be from the same source.
For example, if you call im_receive_input with IM_COM1_SELECT and
again with IM_COM4_SELECT, then a call to im_get_length with a source
of IM_COM1_SELECT returns the length of the message received from
COM4 because that was the last message read from a communications port.
You must install the Reader Wedge to use this function. For information on
loading RWTSR.EXE, see “Runtime Requirements” in Chapter 2, “Working
With Ada.”
See Also:
im_receive_input
Example
See example for im_receive_input.