Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.IbmHosts Library / Attachmate.Reflection.Objects.Emulation.IbmHosts Library / IbmScreen Object / 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
    expression.MoveCursor( _
       ByVal rows As Integer, _
       ByVal columns As Integer _
    ) As ReturnCode
    where expression is a variable that represents a IbmScreen Object

    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.

    ReturnCode enum values

    Member Description
    Cancelled Cancelled.
    Error Error.
    PermissionRequired Permission is required.
    Success Success.
    Timeout Timeout condition.
    Truncated The text is truncated.

    Remarks

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

    Both "rows" and "columns" arguments can be either 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 row and column dimension. 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 MoveCursorTo1 Method or the MoveCursorTo2 Method.

    See Also