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

GrpInsert

Adds an element (or another group) to a group.

Syntax

GrpInsert(hGrp, Value)

hGrp:

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

Value:

The element to add to the group, from 0 to 16375.

Return Value

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

Related Functions

GrpOpen, GrpDelete, GrpIn

Example

! Add 10 and 14 to a group.
GrpInsert(hGrp,10);
GrpInsert(hGrp,14);

See Also

Group Functions