Attachmate Reflection 2014 .NET API Reference
MoveCursor Method


The number of rows to move the cursor. The minimum and maximum values vary according to the number of rows supported by the terminal model Reflection is emulating.
The number of columns to move the cursor. The minimum and maximum values vary according to the number of columns supported by the terminal model Reflection is emulating.
Moves the cursor forward or back.
Syntax
'Declaration
 
Function MoveCursor( _
   ByVal rows As Integer, _
   ByVal columns As Integer _
) As ReturnCode
'Usage
 
Dim instance As IIbmScreen
Dim rows As Integer
Dim columns As Integer
Dim value As ReturnCode
 
value = instance.MoveCursor(rows, columns)
ReturnCode MoveCursor( 
   int rows,
   int columns
)

Parameters

rows
The number of rows to move the cursor. The minimum and maximum values vary according to the number of rows supported by the terminal model Reflection is emulating.
columns
The number of columns to move the cursor. The minimum and maximum values vary according to the number of columns supported by the terminal model Reflection is emulating.

Return Value

ReturnCode indicates success, failure, or an error if the cursor position reaches the screen boundary.
Remarks

Use the CursorRow and CursorColumn properties to verify the cursor location.

Both "rows" and "columns" arguments can be positive or negative numbers. Negative numbers move the cursor back toward smaller rows and columns. The resulting row and column position is bound by the screen's dimensions. Rows and columns do not wrap when they reach the maximum or minimum row or column values.

To move the cursor to a specific location, use the MoveCursorTo Method.

Requirements

Target Platforms: Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP, Microsoft Windows Server 2003 Terminal Services, Microsoft Windows Server 2008 Terminal Services

See Also

Reference

IIbmScreen Interface
IIbmScreen Members

Send Feedback