Product Documentation
Cadence User Interface SKILL Reference
Product Version IC23.1, September 2023

hiSetCurrentIndex

hiSetCurrentIndex(
w_windowId 
x_index 
) 
=> t / nil 

Description

Sets the current cursor index position relative to all the text in a window and scrolls the window, if needed.

The current index position is modified by hiTextDisplayString.

The hiSetCurrentIndex SKILL command will respect document sizes, and displays a warning if the current index is set beyond the document limits.

Arguments

w_windowId

Specifies the window ID.

x_index

Specifies the zero-relative character position of the cursor.

Values Returned

t

The cursor position is set.

nil

w_windowId or x_index is invalid. A warning is displayed.

Related Topics

Functions of Viewfile Window

hiSetCurrentIndex

hiTextDisplayString


Return to top
 ⠀
X