IsDatabase()

Syntax

Result = IsDatabase(#Database)
Description
This function evaluates if the given #Database number is a valid and correctly-initialized database.

Parameters

#Database The database to use.

Return value

Returns nonzero if #Database is a valid database connection and zero otherwise.

Remarks

This function is bulletproof and can be used with any value. If Result is not zero then the object is valid and initialized, otherwise it returns zero. This is a good way to check that a database is ready to use.

See Also

OpenDatabase()
<- GetDatabaseString() - Database Index - NextDatabaseRow() ->