ListTables (ODBCConnection - LotusScript)

Lists the available tables in a connected data source.

Defined in

ODBCConnection

Syntax

tableArray = odbcConnection . ListTables( [ dataSourceName$ [ , userID$ [ , password$ ] ] ] )

Parameters

dataSourceName$

String. Optional. The name of the data source. Defaults to the current data source.

userID$

String. Optional. The name of the user ID.

password$

String. Optional. The password for the user ID.

Return value

tableArray

Array of strings. Each element in the array is the name of an available table in a data source.

Errors

Not connected to a data source (DBstsNCON)

Unable to get user ID and password (DBstsACCS)

Events

BeforeListTables

AfterListTables

Example