DatabaseColumnIndex()

Syntax

Result = DatabaseColumnIndex(#Database, ColumnName$)
Description
Returns the index of the column after executing a query with DatabaseQuery() in the opened #Database. This can be useful for use with commands like GetDatabaseLong() which require a column index.

Parameters

#Database The database to use.
#ColumnName$ The name of the column to get the index of.

Return value

Returns the index of the specified column. This is only valid after having executed a query with DatabaseQuery().

See Also

DatabaseQuery(), GetDatabaseBlob(), GetDatabaseDouble(), GetDatabaseFloat(), GetDatabaseString(), GetDatabaseQuad()

Supported OS

All

<- CloseDatabase() - Database Index - DatabaseColumnName() ->