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

AVEVA™ Plant SCADA

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

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets or Sets the line width of the cursor.

Defined As

  • [VBA] Long Width

  • [Cicode] INT Width

  • [C++] int Width

Execution Result

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

Limits

  • Minimum (0)

  • Maximum (8)

Calling Syntax

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

[VBA]

Sub Example(cursor As Object)
Dim lineWidth As Long
`Getting Property value
lineWidth = cursor.Width
`Setting Property value
cursor.Width = 5
End Sub

[Cicode]

FUNCTION Example(OBJECT hCursor)
INT lineWidth;
// Getting current property value
lineWidth = _ObjectGetProperty(hCursor, "Width");
// Setting Property to 5
_ObjectSetProperty(hCursor, "Width", 5);
END

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