Programming Guide



sm_*gtof

Converts a selection group name and occurrence into a field number and occurrence

int sm_i_gtof(char *selection_group, int grp_occurrence, int *occurrence);

selection_group
The name of the group whose field number is sought.

grp_occurrence
The occurrence in selection_group.

occurrence
On return, contains the occurrence number of the field.

Environment

C only

Returns

Description

sm_i_gtof converts a selection group name and occurrence into a field number and occurrence. This function lets you use other Panther library functions to manipulate selection group fields by converting group references into field references. For example, to access text from a specific field within a selection group, use sm_i_gtof to get the field and occurrence number, then call sm_o_getfield to retrieve the text.

See Also

sm_ftog