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

Related Topics

PEGetNGroupSortFields, Volume 2, Chapter 1

CRPEJob::GetNLinesInSection

Use this method to determine the number of lines in the specified section of the report, that is, how long a specified report section is according to the number of lines. For example, this is useful when trying to fit mailing label reports into the labels you are using.

Syntax

GetNLinesInSection (sectionCode SMALLINT) RETURNING SMALLINT

Parameter

sectionCode

Specifies the Section Codes (page 480), for the section of the report for which you want

 

to retrieve the number of lines.

 

 

Returns

Returns the number of lines in the specified section of the report.

Returns -1 if an error occurs.

CRPEJob::GetNParams

Syntax

GetNParams () RETURNING SMALLINT

Remarks

Use this method whenever you need to know how many parameters are required by a stored procedure in a SQL database table. This method is usually used in conjunction with CRPEJob::GetNthParam, Page 427, or

CRPEJob::SetNthParam, Page 451.

Return Value

The number of parameters in the current stored procedure being used to generate the report.

Related Topics

PEGetNthParam, Volume 2, Chapter 1

Crystal Class Library for NewEra Reference

424

CRPEJob::GetNSortFields

Syntax

GetNSortFields () RETURNING SMALLINT

Remarks

This method gets the number of sort fields in the report.

Return Value

The number of sort fields defined in the report. Returns 0 (zero) if there are no sort fields in the report. Returns -1 if an error occurs.

Related Topics

PEGetNSortFields, Volume 2, Chapter 1

CRPEJob::GetNTables

Syntax

GetNTables() RETURNING SMALLINT

Remarks

This method returns the number of tables in the report.

Return Value

The number of tables used in the report. Returns -1 if an error occurs.

CRPEJob::GetNthFormula

Syntax

GetNthFormula (formulaN SMALLINT) RETURNING BOOLEAN, ixString, ixString

Crystal Class Library for NewEra Reference

425

Parameter

formulaN

Specifies the 0-based number of the formula about which you want to gather information.

 

The first formula added to your report is 0, the second is 1, etc.

Remarks

Use this function to obtain the formula name and formula text of a specific formula in the report. Once the formula name is obtained, formula text can be changed with CRPEJob::SetFormula, Page 442.

Return Values

BOOLEAN

TRUE if the call is successful, FALSE if something goes wrong.

 

 

ixString

Retrieves the name of the formula specified.

 

 

ixString

Retrieves the text of the formula specified.

Related Topics

PEGetNthFormula, Volume 2, Chapter 1

CRPEJob::GetNthGroupSortField

Syntax

GetNthGroupSortField (sortFieldN SMALLINT) RETURNING BOOLEAN, ixString, SMALLINT

Parameter

sortFieldN

Specifies the 0-based number of the group sort field you want to retrieve. The first group

 

sort field is field 0. If the report has N sort fields, the function can be called with

 

sortFieldN between 0 and N-1.

Remarks

Returns information about one of the group sort fields in the specified report: that is, it returns the name of the field and the direction (ascending or descending) of the sort. This method is typically used as one of a series: CRPEJob::GetNGroupSortFields, Page 423 (called once), CRPEJob::GetNthGroupSortField (called as many times as needed to identify the correct group sort field), and CRPEJob::SetNthGroupSortField, Page 450 (called once when the correct sort field is identified). The series can be used to identify and then change an existing group sort field and/or sort order at print time in response to a user selection.

Crystal Class Library for NewEra Reference

426

Returns

BOOLEAN

TRUE if the call is successful, FALSE if something goes wrong.

 

 

ixString

Retrieves the name of the group sort field.

SMALLINT

Retrieves one of the Sort Order Constants (page 480).

 

 

Related Topics

PEGetNthGroupSortField, Volume 2, Chapter 1

CRPEJob::GetNthParam

Syntax

GetNthParam (paramN SMALLINT) RETURNING BOOLEAN, ixString

Parameter

paramN

Specifies which parameter in the stored procedure you want to get the value of. The first

 

parameter of a stored procedure is 0, the second is 1, etc.

 

 

Remarks

Gets the Nth parameter of a stored procedure. Use this method whenever you need to find out a particular parameter required by a stored procedure in a SQL database table.

Returns

BOOLEAN

TRUE if the call is successful, FALSE if something goes wrong.

ixString

Retrieves the current value of the specified parameter in the stored procedure.

 

 

Related Topics

PEGetNthParam, Volume 2, Chapter 1

CRPEJob::GetNthSortField

Syntax

GetNthSortField (sortFieldN SMALLINT) RETURNING BOOLEAN, ixString, SMALLINT

Crystal Class Library for NewEra Reference

427

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