TerminalHeight Method

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

The TerminalHeight method returns the maximum height, in characters, of an RF device's display.

VB

nHeight = object.TerminalHeight ()

VC++

HRESULT hr = object->TerminalHeight(short *nHeight);

Return Value

nHeight

The terminal display height variable.

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 termIface As New RFTERMINAL
wlio AS New RFIO
termWidth As Integer
termHeight As Integer
.
.
.
' if you need to obtain current terminal info, use the
' ReadTerminalInfo method (not shown).
termWidth = termIface.TerminalWidth
termHeight = termIface.TerminalHeight
.
.
.
' In this example, use the variables with an RFPrint call.
wlio.RFPrint 0, (termHeight – 1), "Correct y/n? ", WLNORMAL
' hide the cursor for a cleaner display using TermWidth or
' TermHeight
wlio.RFPrint 0, (termWidth + 1), "", WLNORMAL

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal