next up previous 204
Next: GRP_INFOI - Retrieve an item of integer information about a name
Up: Routine Descriptions
Previous: GRP_INDEX - Searches for a given name and if found, returns its index


GRP_INFOC - Retrieve an item of character information about a name

Description:
This routine returns an item of character information about a single name from a group. The item can be any one of those described under argument ITEM.

Invocation:
CALL GRP_INFOC( IGRP, INDEX, ITEM, VALUE, STATUS )

Arguments:

IGRP = INTEGER (Given)
A GRP group identifier.
INDEX = INTEGER (Given)
An index within the group specified by IGRP. If the supplied value is outside the bounds of the group, then a blank value is returned for VALUE, and an error is reported.
ITEM = CHARACTER $*$ ( $*$ ) (Given)
The name of an item of information. This can be any of the following (abbreviations are not allowed):

NAME - The name itself. If the group is case insensitive (as established by a call to routine GRP_SETCS) then the name is returned in upper case.

FILE - The text file within which the name was explicitly given. If the name was not specified within a file then FILE is returned blank.

VALUE = CHARACTER $*$ ( $*$ ) (Returned)
The requested item of information. If the supplied character variable is too short, the string is truncated. If an error occurs a blank value is returned.
STATUS = INTEGER (Given and Returned)
The global status.



next up previous 204
Next: GRP_INFOI - Retrieve an item of integer information about a name
Up: Routine Descriptions
Previous: GRP_INDEX - Searches for a given name and if found, returns its index

GRP Routines for Managing Groups of Objects
Starlink User Note 150
D.S. Berry
21st October 2009
E-mail:ussc@star.rl.ac.uk

Copyright © 2009 Science and Technology Facilities Council