Cicode Programming Reference > Cicode Function Categories > Group Functions Introduction > GrpClose

GrpClose

Closes a group. The group is destroyed and the group handle becomes invalid. You should close a group when it is not in use, to release the associated memory. CitectSCADA closes all groups on shutdown.

Syntax

GrpClose(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

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

Related Functions

GrpOpen

Example

hGrp=GrpOpen("MyGrp",1);
..
GrpClose(hGrp);

See Also

Group Functions