Crystal Reports Developer's Help

Function data

UFL functions are much like any other function you might create in C. They can accept values that are passed as parameters, and they return a value that is printed on the report. Once you have determined how a UFL function will perform a task, you will know exactly what kind of data it will require to complete that operation. The following table shows the data types that a UFL function can accept as a parameter, along with a description of what the parameter will look like in C.

Parameter Type (alphabetical)C Data Type

Array (Boolean)

Pointer to a Boolean array.

Array (Currency)

Pointer to a number array.

Array (Date)

Pointer to a date array.

Array (DateTime)

Pointer to a date time array.

Array (Number)

Pointer to a number array.

Array(NumberToCurrency)

Pointer to a number array.

Array (String)

Pointer to a string array.

Array (Time)

Pointer to a time array.

Boolean

Short integer.

Currency

Double.

Date

Integer.

DateTime

Structure of two integers.

Number

Double.

NumberToCurrency

Double.

Range (Currency)

Structure containing two doubles.

Range (Date)

Structure containing two long integers.

Range (DateTime)

Structure containing two date time structures.

Range (Number)

Structure containing two doubles.

Range (NumberToCurrency)

Structure containing two doubles.

Range (String)

Structure containing pointers to two elements in a character array.

Range (Time)

Structure containing two integers.

RangeArray (Currency)

Pointer to a number range structure array.

RangeArray (Date)

Pointer to a date range structure array.

RangeArray (DateTime)

Pointer to a date time range structure array.

RangeArray (Number)

Pointer to a number range structure array.

RangeArray (NumberToCurrency)

Pointer to a number range structure array.

RangeArray (String)

Pointer to a string range structure array.

RangeArray (Time)

Pointer to a time range structure array.

String

Pointer to an array of characters.

Time

Integer.



Business Objects
http://www.businessobjects.com/
Support services
http://www.businessobjects.com/services/support/
Product Documentation on the Web
http://support.businessobjects.com/documentation/