Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
191
Добавлен:
11.05.2015
Размер:
4.96 Mб
Скачать

TestConnectivity Method (Database Table Object)

The TestConnectivity method tests to see if the database can be logged on to with the current information and if the database table can be accessed by the report.

Syntax

object.TestConnectivity

Returns

TRUE if the database session, log on, and location information is all correct.

FALSE if an error occurs or the call fails.

DatabaseTables Collection

The DatabaseTables Collection is a collection of DatabaseTable objects. A DatabaseTable object exists for every database object (i.e., table, query, stored procedure, etc.) accessed by the report. Access a specific DatabaseTable Object in the collection using the Item property.

DatabaseTables Collection Properties

Property

Description

Read/Write

Restriction in

event handler

 

 

 

 

 

 

 

 

 

 

 

Count

Returns the number of database objects in the

Read only

None

 

collection.

 

 

 

 

 

 

Item

Returns DatabaseTable Object. Item has an index

Read only

None

 

parameter that can be either a string reference to the

 

 

 

table, (i.e., Item(“Categories”)) or a numeric, 1-based

 

 

 

index (i.e., Item (1)). When a numeric index is used, the

 

 

 

items in the collection are indexed in the order they

 

 

 

were added to the report.

 

 

Parent

Reference to the Parent object (Database).

Read only

None

 

 

 

 

Remarks

Instead of using the Item property as shown, you can reference a table directly, for example, DatabaseTable(“Categories”) or DatabaseTable(1).

Report Designer Component Object Model

40

Соседние файлы в папке crystal