ISGROUP (return GROUP type or not)

Top  Previous  Next

 

ISGROUP( label, element )

ISGROUP

Returns true if the element is a GROUP data type.

label

The label of a GROUP or QUEUE.

element

An integer expression specifying the ordinal position of a field in the GROUP or QUEUE.

The ISGROUP statement returns true if the element of a GROUP or QUEUE is a GROUP data type.

Return Data Type:

SIGNED

Example:

MyGroup  GROUP

F1        LONG        !Field number 1

F2        SHORT       !Field number 2

F3        STRING(30)  !Field number 3

InGroup   GROUP       !Field number 4

F1         LONG       !Field number 5

F2         SHORT      !Field number 6

F3         STRING(30) !Field number 7

         END

        END

 

Flag  LONG

CODE

Flag = ISGROUP(MyGroup,1)  !returns FALSE

 

Flag = ISGROUP(MyGroup,4)  !returns TRUE

 

See Also:

HOWMANY

GETGROUP

WHAT

WHERE

WHO