isgroup_return_group_type_or_not_.htm
Navigation: Language Reference > 13 - Built-in Functions >====== ISGROUP (return GROUP type or not) ====== | |
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:
isgroup_return_group_type_or_not_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1