Reflection .NET API
Attachmate.Reflection.Emulation.IbmHosts Assembly / Attachmate.Reflection.Emulation.IbmHosts Namespace / IIbmScreen Interface / 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.


In This Topic
    MoveCursor Method
    In This Topic
    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.

    See Also