RawTerminalType Method

This member of RFTerminal Object is supported on iOS, Windows Mobile, Windows CE, Palm, and DOS.

The RawTerminalType method returns the basic numeric values that are used to represent the various types of RF devices.

VB

nRawType = object.RawTerminalType ()

VC++

HRESULT hr = object->RawTerminalType(short *nRawType);

Return Value

nRawType

The numeric value used to represent the various types of RF devices. This method will return a -1 if an error occurs. Use RFGetLastError to return the generated error code. The possible values for the device types are:

1 – LRT

2 – PDT

3 – PRC/VRC

4 – WS 10XX

5 – PDT 68XX

6 – PDT 61XX

11 – Palm Pilot

27 – CE, 2740

72 – CE, 7200

75 – CE, 7540

93 – Percon Falcon

5020 – Intermec Device

8000 – Windows Device

8001 – PPC

8002 – HPC

8003 – HPC Pro

Remarks

For network efficiency purposes, the settings within the RFTerminal object are initially only set when the object is first created. Therefore, to return the most current information you must first use the ReadTerminalInfo Method which will update the RFTerminal object with the latest device settings before making a call to any other methods.

Example

' VB Sample Code
Dim wlTerm As New RFTERMINAL
nRFTerminalType As Integer
.
.
.
nRFTerminalType = wlterm.RawTerminalType

' The following code illustrates one method you may use in
' your applications to classify devices so
' that you can process their input differently later on.
Select Case nRFTerminalType
Case PDT1740
nRFTerminalType = WIDGETDEVICE
Case PDT2740
nRFTerminalType = WIDGETDEVICE
End Select

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal