idlastro / Database Procedures: DB_ITEM_INFO

[Source code]

NAME
DB_ITEM_INFO
PURPOSE
routine to return information on selected item(s) in the opened
data bases.
CALLING SEQUENCE
result = db_item_info( request, itnums)
INPUTS
request - string giving the requested information.
        'name'          - item names
        'idltype'       - IDL data type (integers)
                          see documentation of intrinsic SIZE funtion
        'nvalues'       - vector item length (1 for scalar)
        'sbyte'         - starting byte in .dbf record (use bytepos
                          to get starting byte in record returned by
                          dbrd)
        'nbytes'        - bytes per data value
        'index'         - index types
        'description'   - description of the item
        'pflag'         - pointer item flags
        'pointer'       - data bases the items point to
        'format'        - print formats
        'flen'          - print field length
        'headers'       - print headers
        'bytepos'       - starting byte in dbrd record for the items
        'dbnumber'      - number of the opened data base
        'pnumber'       - number of db it points to (if the db is
                                opened)
        'itemnumber'    - item number in the file
itnums -(optional) Item numbers.  If not supplied info on all items
        are returned.
OUTPUT
Requested information is returned as a vector.  Its type depends
on the item requested.
HISTORY
version 1  D. Lindler  Nov. 1987
Converted to IDL V5.0   W. Landsman   September 1997
upport new DB format which allows > 32767 bytes W.L. Oct 2010