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

DatabaseFieldDefinitions Collection

The DatabaseFieldDefinitions Collection is a collection of database field definition objects. One object exists in the collection for every database field accessed by the report. Access a specific DatabaseFieldDefinition Object (page 33) in the collection using the Item property.

DatabaseFieldDefinitions Collection Properties

Property

Description

Read/Write

Restriction in

event handler

 

 

 

 

 

 

 

 

 

 

 

Count

The number of DatabaseFieldDefinition Object

Read only

None

 

(page 33), in the collection.

 

 

 

 

 

 

Item

Returns DatabaseFieldDefinition Object (page 33).

Read only

None

 

Item has an index parameter that can be either a

 

 

 

string reference to the database field name or a

 

 

 

numeric, 1-based index (i.e., Item (1)) for the first

 

 

 

database field in the collection. 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 (DatabaseTable

Read only

None

 

Object (page 36)).

 

 

Remarks

Instead of using the Item property as shown, you can reference a database directly, for example, DatabaseFieldDefinition(“Product ID”) or DatabaseFieldDefintion(1).

DatabaseTable Object

The DatabaseTable Object refers to a database table accessed by the report.

DatabaseTable Object Properties

Property

Description

 

Read/Write

Restriction in

 

event handler

 

 

 

 

 

 

 

 

 

 

 

 

DatabaseType

Returns the database type:

Read only

 

 

crStandardDatabase = 1

 

 

 

crSQLDatabase

= 2

 

 

 

 

 

 

DescriptiveName

Returns the table descriptive name.

Read only

None

 

 

 

 

 

Report Designer Component Object Model

36

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