User Tools

Site Tools


who_return_field_name_from_group_.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== WHO (return field name from group) ====== Previous pageReturn to chapter overviewNext page

WHO( group, number )

blk2blue.jpg

WHO Returns a string containing the name of a specified field from a group structure.
group The label of a GROUP, RECORD, CLASS, or QUEUE declaration with the BINDABLE attribute.
number An integer expression specifying the ordinal position of a field in the group.

The WHO statement returns a string containing the name of the number specified field from a group structure.

Return Data Type:     STRING

Example:

MyGroup GROUP

F1       LONG                           !Field number 1

F2       SHORT                          !Field number 2

F3       STRING(30)                     !Field number 3

InGroup  GROUP                          !Field number 4

F4        LONG                          !Field number 5

F5        SHORT                         !Field number 6

F6        STRING(30),NAME('CustomName') !Field number 7

        END

       END

CurrentField STRING(30)

CODE

CurrentField = WHO(MyGroup,1)      !Returns “F1”

CurrentField = WHO(MyGroup,6)      !Returns “F5”

CurrentField = WHO(MyGroup,7)      !Returns “CustomName”

See Also:

WHAT

WHERE

GETGROUP

GROUP

HOWMANY

ISGROUP

RECORD

CLASS

QUEUE

BINDABLE

who_return_field_name_from_group_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)