Working with Parameter Values and Ranges

Parameters can contain discrete values, ranges, or both discrete values and ranges together. The following discussion outlines how Crystal Reports handles parameter values and ranges.

Before retrieving a parameter current value or range, Call PEGetParameterValueInfo, to determine what type of value(s) are stored. PEParameterValueInfo, member hasDiscreteValues will contain one of the following three constants.

Constant Description

PE_DR_HASRANGE

Only ranges are present.

PE_DR_HASDISCRETE

Only discrete values are present.

PE_DR_HASDISCRETEANDRANGE

Both discrete values and ranges are present. See guidelines below.

The functions listed below are used to add and retrieve parameter discrete values and parameter ranges. The sequence of functions that you call in your application will depend on whether discrete values, ranges, or a combination of both are present.

PEXXXParameterCurrentValue(s) PEXXXParameterCurrentRange(s)

PEGetNParameterCurrentValues

PEGetNParameterCurrentRanges

PEGetNthParameterCurrentValue

PEGetNthParameterCurrentRange

PEAddParameterCurrentValue

PEAddParameterCurrentRange

Use the following guidelines when deciding which sequence of functions to call.

PEParameterValueInfo.hasDiscreteValues = PE_DR_HASRANGE

PEParameterValueInfo.hasDiscreteValues = PE_DR_HASDISCRETE

PEParameterValueInfo.hasDiscreteValues = PE_DR_HASDISCRETEANDRANGE



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