idlastro / FITS Binary Table Extensions I/O: FXBSTATE

[Source code]

NAME
FXBSTATE()
PURPOSE
Returns the state of a FITS binary table.
Explanation This procedure returns the state of a FITS binary table that
was either opened for read with the command FXBOPEN, or for
write with the command FXBCREATE.
Use Result = FXBSTATE(UNIT)
Inputs UNIT = Logical unit number returned by FXBOPEN routine.
Must be a scalar integer.
Opt. Inputs None.
Outputs The result of the function is the state of the FITS binary
table that UNIT points to.  This can be one of three values:
        0 = Closed
        1 = Open for read
        2 = Open for write
Opt. Outputs None.
Keywords None.
Calls FXBFINDLUN
Common Uses common block FXBINTABLE--see "fxbintable.pro" for more
information.
Restrictions None.
Side effects If UNIT is an undefined variable, then 0 (closed) is returned.
Category Data Handling, I/O, FITS, Generic.
Prev. Hist. None.
Written William Thompson, GSFC, 1 July 1993.
Modified Version 1, William Thompson, GSFC, 1 July 1993.
Version Version 1, 1 July 1993.
Converted to IDL V5.0   W. Landsman   September 1997