Next: SDDS_VerifyParameterExists
Up: Manual Pages
Previous: SDDS_VerifyArrayExists
Contents
SDDS_VerifyColumnExists
- name:
SDDS_VerifyColumnExists
- description:
Returns the index of a named column if it exists as the specified data type.
- synopsis: #include "SDDS.h"
long SDDS_VerifyColumnExists(SDDS_TABLE *SDDS_table, long mode, char *name)
long SDDS_VerifyColumnExists(SDDS_TABLE *SDDS_table, long mode, long type, char *name)
- arguments:
- SDDS_table: Address of the SDDS_TABLE structure for the data set.
- mode: Valid modes are FIND_SPECIFIED_TYPE, FIND_ANY_TYPE, FIND_NUMERIC_TYPE, FIND_FLOATING_TYPE, FIND_INTEGER_TYPE
- type: If mode is FIND_SPECIFIED_TYPE it expects an SDDS data type.
- name: Name of the column in question.
- return value:
If the desired column exists it returns the index of the SDDS column. Otherwise it returns -1.
On failure, returns zero and records an error message.
- see also:
Robert Soliday
2006-06-29