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

AVEVA™ Plant SCADA

StrToGrp

  • Last UpdatedJul 18, 2023
  • 1 minute read

Converts a string into a group and places it into a group number. Any existing values in the group are cleared before the new values are inserted. The group string is a series of numbers separated by " , " to list individual values or " .. " to specify a range of values.

Syntax

StrToGrp(hGrp, Str)

hGrp:

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

Str:

The string to convert.

Return Value

0 (zero) if successful, otherwise an error code is returned.

GrpOpen

Example

hGrp=GrpOpen("MyGrp",1);

! Set group to 1 ... 10 and 20, 30 and 40.

StrToGrp(hGrp,"1..10,20,30,40");

See Also

String Functions

Using the Caret Escape Sequence Character

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