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

Constant

Value

 

 

 

 

crCurrencyField

8

 

 

crDateField

10

crDateTimeField

16

 

 

crIconField

18

 

 

crInt16sField

3

 

 

crInt16uField

4

crInt32sField

5

 

 

crInt32uField

6

 

 

crInt8sField

1

 

 

crInt8uField

2

 

 

crNumberField

7

crOleField

20

 

 

crPersistentMemoField

14

 

 

crPictureField

19

 

 

crStringField

12

crTimeField

11

 

 

crTransientMemoField

13

 

 

crTransientMemoField

33

 

 

Remarks

Regarding property EditMask, please see the additional information available in Seagate Crystal Reports Online Help. Search for "Edit Parameter Field dialog box" in the SCR Online Help index.

Regarding properties MaximumValue and MinimumValue, the following comments apply.

¾All parameter field types: EnableRangeLimit property must be set to TRUE for MaximumValue and Minimum Value properties to have an effect.

¾String parameter fields: The properties provide the maximum and minimum lengths of the string, not a value range.

¾Boolean parameter fields: The properties do not apply.

ParameterFieldDefinition Object Methods

AddCurrentRange Method (ParameterFieldDefinition Object), Page 88

AddCurrentValue Method (ParameterFieldDefinition Object), Page 88

AddDefaultValue Method (ParameterFieldDefinition Object), Page 89

Report Designer Component Object Model

87

ClearCurrentValueAndRange Method (ParameterFieldDefinition Object), Page 89

DeleteNthDefaultValue Method (ParameterFieldDefinition Object), Page 89

GetNthCurrentRange Method (ParameterFieldDefinition Object), Page 90

GetNthCurrentValue Method (ParameterFieldDefinition Object), Page 90

GetNthDefaultValue Method (ParameterFieldDefinition Object), Page 91

SetNthDefaultValueMethod (ParameterFieldDefinition Object), Page 91

AddCurrentRange Method (ParameterFieldDefinition Object)

The AddCurrentRange method adds the current parameter range to the specified parameter field of a report.

Syntax

Sub AddCurrentRange(start, end, rangeInfo As CRRangeInfo)

Parameters

Parameter

Description

 

 

 

 

Start

Sets start of the value range.

 

 

End

Sets end of the value range.

 

 

RangeInfo

Use this bit mapped value to indicate whether the upper and/or lower bound of the

 

range should be included.

 

 

Constant

Value

 

 

 

 

crRangeIncludeLowerBound

2

crRangeIncludeUpperBound

1

crRangeNoLowerBound

8

 

 

crRangeNoUpperBound

4

 

 

AddCurrentValue Method (ParameterFieldDefinition Object)

The AddCurrentValue Method adds a value to the specified parameter field of a report.

Syntax

Sub AddCurrentValue(CurrentValue)

Report Designer Component Object Model

88

Parameters

Parameter Description

CurrentValue

Specifies the current value to be added.

AddDefaultValue Method (ParameterFieldDefinition Object)

The AddDefaultValue Method adds a value to the group of default values for a specified parameter in a report.

Syntax

Sub AddDefaultValue(DefaultValue)

Parameters

Parameter Description

DefaultValue

Specifies the default value to be added.

ClearCurrentValueAndRange Method (ParameterFieldDefinition

Object)

The ClearCurrentValueAndRange Method clears the specified parameter field of all current values and ranges.

Syntax

Sub ClearCurrentValueAndRange()

DeleteNthDefaultValue Method (ParameterFieldDefinition

Object)

The DeleteNthDefaultValue Method deletes the nth default value of the parameter field.

Syntax

Sub DeleteNthDefaultValue(index As Integer)

Report Designer Component Object Model

89

Parameter

Parameter Description

index

Index of the value to be deleted.

Returns

TRUE if the call is successful.

FALSE if the call fails.

GetNthCurrentRange Method (ParameterFieldDefinition Object)

The GetNthCurrentRange Method retrieves a value range from the specified parameter field in a report.

Syntax

Sub GetNthCurrentRange(index As Integer, pStart, pEnd, pRangeInfo As

CRRangeInfo)

Parameters

Parameter

Description

 

 

 

 

index

Index of the value range to be retrieved.

 

 

pStart

Sets start of the value range.

pEnd

Sets end of the value range.

CRRangeInfo

Use this bit mapped value to indicate whether the upper and/or lower bound of the

 

range should be included.

 

 

Constant

Value

 

 

 

 

crRangeIncludeLowerBound

2

 

 

crRangeIncludeUpperBound

1

crRangeNoLowerBound

8

crRangeNoUpperBound

4

 

 

GetNthCurrentValue Method (ParameterFieldDefinition Object)

The GetNthCurrentValue Method returns a value from the specified parameter field of a report.

Syntax

Function GetNthCurrentValue(index As Integer)

Report Designer Component Object Model

90

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