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

GrpIn

Determines if an element is in a group.

Syntax

GrpIn(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 locate, from 0 to 16375.

Return Value

1 if the element is in the group, otherwise 0 is returned.

Related Functions

GrpOpen, GrpInsert, GrpDelete

Example

IF GrpIn(hGrp,10) THEN
Prompt("Area 10 in this group");
END

See Also

Group Functions