SortFields

SortFields specifies the field(s) that are to be used to sort your data when the report is printed.

Syntax

[form.]Report.SortFields(ArrayIndex)[= "{+|-} SortField"]

Enter the fields on which you want the data in your report to be sorted.

For example, to sort an order database alphabetically by customer, and then by order date, you can enter code similar to the following:

CrystalReport1.SortFields(0) = "+{orders.CUSTOMER}"
CrystalReport1.SortFields(1) = "+{orders.ORDERDATE}"
Remarks
Data Type

Array of strings

Availability

Runtime

Related Report Engine Functions

PESetNthSortField



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com