CreateRangeValue Method

Applies To  

Creates a new range value.

See Also  
Returns

ReportParameterRangeValue Object

Syntax

Function CreateRangeValue As ReportParameterRangeValue

Remarks

Before you use this property, you should check to see whether or not the parameter supports range values by using the SupportsRangeValues Property. Additionally, you should check to see what the type of the parameter, by using the ValueType Property if you are to successfully assign it a new value. That is, you cannot create a new string value when the parameter requires a number. Note that a range value takes two single values as its ToValue Property and FromValue Property, but that these are created for you when you use this method; that is, there is no need to use the CreateSingleValue Method when creating a range value.

Once you have created the new value, you may modify its contents. See the ReportParameterRangeValue Object for the list of properties to modify. After modifying the properties, be sure to use the InfoStore's Commit Method to write the changes back to the server. If this method fails, it returns an error. Please see the section Error Codes for a list of errors and their descriptions



Crystal Decisions, Inc.
http://www.crystaldecisions.com
Support services:
http://support.crystaldecisions.com