Skip to main content
OCLC Support

CursorPosition

Find the syntax, use, parameters, return values, and an example for the CursorPosition macro command in Connexion client.
Syntax CS.CursorPosition (nPosition)
Use to Used by the macro recorder to record the position of the cursor when you click to place it in a record.
Parameters nPosition is a number representing the location of the cursor.
Comments CursorPosition generally works reliably only for the macro recorder. Its numeric value varies depending on the presence or absence of indicators.

Recommendation:

For writing macros, OCLC recommends that you use CursorColumn, instead of CursorPosition to place the cursor. Writing CursorPosition into a macro can cause unexpected results.

CursorColumn, on the other hand, reliably places the cursor by the exact number of data points in a field. A data point can be a character or a space; therefore, the presence or absence of indicators is accounted for.
Return values An integer representing the position of the cursor.