CursorY

Syntax

<Path>.CursorY

The attribute CursorY sets the row in which the internal cursor is located. The method find starts searching from the current cursor position and sets the cursor to the next found item. The methods max and min set the cursor to the maximum or minimum value of the given range. Plant Simulation ignores ranges located before the current cursor position. The Method starts its task beginning at the cursor position. If a Method does not return the expected values, check the cursor position. The first column has the number 1. If you also want to include the user-defined index, set the attribute CursorY to 0.

Note:

This attribute applies to the DataTable and the TimeSequence.

Data Type of the Value You Can Assign

You can assign a value of data type integer.

Example

MyDataTable.CursorX := 1 -- starting position
MyDataTable.CursorY := 1 -- set
if MyDataTable.find({1,*},4712)
 print "found in row:",table.CursorY
end 
Note:

You can also set the pointer by employing a user-defined index. For a user-defined index of data type integer, use the method setCursor!

Example

MyDataTable.CursorY := "urgent" -- user-defined index
MyDataTable.CursorX := 3.1415 

Related Topics

setCursor

CursorX

find

findCeil

findFloor

findAttr

min

max