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

GrpDelete

Deletes a single element or all elements from a group. You can also delete another group from within the group.

Syntax

GrpDelete(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 delete from the group, from 0 to 16375.

Return Value

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

Related Functions

GrpInsert, GrpOpen

Example

! Delete 10 and 14 from a group.
GrpDelete(hGrp,10);
GrpDelete(hGrp,14);

See Also

Group Functions