Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

ITrendCursor​.Position [Property][Get/Set]

  • Last UpdatedJul 18, 2023
  • 1 minute read

Get or Set the cursor's physical position in the Process Analyst.

Defined As

  • [VBA] Long Position

  • [Cicode] INT Position

  • [C++] int Position

Execution Result

If the property get/set succeeds, the return value will be Success. If the return variable is bad, the return value will be InvalidArgument. If the cursor is deleted, the return value will be GeneralFailure.

Remarks

The cursor position is measured as the number of pixels from the left of the Process Analyst graph.

Calling Syntax

This example assumes you have a valid reference to a cursor.

[VBA]

Sub Example(cursor As Object)
Dim position As Integer
`Getting Property value
position = cursor.Position
`Setting Property value
cursor.Position = 300
End Sub

[Cicode]

FUNCTION Example(OBJECT hCursor)
INT position;
// Getting current property value
position = _ObjectGetProperty(hCursor, "Position");
// Setting Property to (300)
_ObjectSetProperty(hCursor, "Position", 300);
END

In This Topic
TitleResults for “How to create a CRG?”Also Available in