Walter Meester
HoogkarspelNetherlands
General information
Category:
Third party products
Aaron,
>I'm creating the Object at Runtime, eg.
>
>PUBLIC oCRYSTAL_REPORT
>oCRYSTAL_REPORT = CreateObject("Crystal.CrystalReport")
Ahh, The activeX control. This is from the help
Description
Changes the default value of the specified parameter field. When the prompting dialog box appears for the parameter field, the value you specify with this property is the value you are prompted with.
Usage
[form.]Report.ParameterFields(ArrayIndex)[="ParameterName;
NewValue;SetCurrentValue"]
Remarks
¨ The parameter, SetCurrentValue can either be set to TRUE or FALSE.
¨ If set to TRUE, the parameter value is passed to the current value in the report; the user is not prompted to enter the parameter value.
¨ If set to FALSE, the parameter value is passed to the default value for the parameter; the user is prompted to enter the parameter value, with the value you set showing as the default value.
¨ The default value for SetCurrentValue is FALSE.
¨ This property does not eliminate the prompt by specifying a current value for the parameter field. You will still be prompted but the default value in the prompt will be the value you specify.
¨ Use a separate line of code for each parameter field for which you want to change the value.
¨ The order of values in the array must conform to the order of parameter fields in the report.
¨ The first parameter field in the report is array index (0), the second is (1), etc.
¨ For example, to change the value of the first parameter field in a report (parameter1) to "red" use the following syntax (user will not be prompted to enter a value):
CrystalReport1.ParameterFields(0) = "parameter1;red;TRUE"
¨ Or, to prompt the user to change the value of the third parameter field in a report (parameter3) use the following syntax (user will be prompted to use the default value set using the NewValue parameter below - "blue"):
CrystalReport1.ParameterFields(2) = "parameter3;blue;FALSE"
Data Type
Array of strings
Availability
Runtime only
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only