SetCurrentValue Method (ParameterFieldDefinition Object)

The SetCurrentValue method sets the current value of the parameter. This is the value that will be used for the parameter in the report. If the current value is set, no prompt will appear for the parameter when the report is run.

Syntax

object.SetCurrentValue CurrentValue, ValueType

Parameters

CurrentValue

Specifies the value that you want to set the parameter field current value to. Can be number, currency, date, string, or Boolean.

ValueType (Optional)

Specifies CRFieldValueType (see table below) indicating the type of the current value (that is, number, currency, etc.). You may either change the parameter field type using this parameter or keep the current type (as specified in the report) by omitting this parameter.


Constant Value


crBitmapField

17


crBlobField

15


crBooleanField

9


crChartField

21


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


crUnknownField

22



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