SetDefaultValue Method (ParameterFieldDefinition Object)

The SetDefaultValue method sets the default value for the parameter. This is the value that will be used as the default shown when prompting for a value.

Syntax

object.SetDefaultValue DefaultValue, ValueType

Parameters

DefaultValue

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

ValueType (Optional)

Specifies CRFieldValueType (see table below) indicating the type of the default value (i.e., 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