DB_GetFieldIndex

This function looks up name in the database. An index is returned (> 0) if the name is found, otherwise the error code DB_NOFIELD returns.