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

Remarks

Instead of using the Item property as shown, you can reference a sort field directly (for example, SortFields(1)).

SortFields Collection Methods

Add

The Add method adds a record or group sort field.

Syntax

object.Add SortDirection, Field

ParametersL

SortDirection

Specifies CRSortDirection (see table below) indicating the direction in which the field

 

data should be sorted (that is, ascending, descending, etc.).

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

crAscendingOrder

1

 

 

 

 

crDescendingOrder

0

 

 

 

 

crOriginalOrder

2

 

 

 

 

 

Field

Specifies the field definition or field name.

 

 

 

Returns

SortField

Delete

The Delete method deletes a record or group sort field.

Syntax

object.Delete Index

Parameter

Index

Specifies the 1-based number indicating which sort field in the collection should be deleted.

 

The first sort field is sort field 1.

Crystal Report Engine Object Model for the Automation Server

366

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