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

AVEVA™ Plant SCADA

GrpFirst

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the value of the first element in a group. The first element in the group is the element with the lowest value. You can follow this function with a GrpNext() call, to get the value of all the elements in a group.

Syntax

GrpFirst(hGrp)

hGrp:

The group handle, returned from the GrpOpen() function. The group handle identifies the table where all data on the associated group is stored.

Return Value

The value of the first element in a group or -1 if the group is empty.

GrpOpen, GrpNext

Example

Value=GrpFirst(hGrp);
IF Value<>-1 THEN
Prompt("First value is "+Value:###);
END

See Also

Group Functions

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