Yes, this is possible. It's difficult to give you any concrete advice without knowing exactly what you are trying to achieve, and what you have done so far. But in general ....
I'll assume you know how to create a report object (usually called loRep in VFP). That object has a collection of parameter fields, which you can access programmatically. Let's say you want to access a parameter named
{?Category}. You could do it something like this:
Code:
FOR EACH loParam IN loRep.ParameterFields
IF loParam.Name = "{?Category}"
loParam.ClearCurrentValueAndRange
loParam.AddCurrentValue("A1")
loParam.AddCurrentValue("A2")
loParam.AddCurrentValue("A3")
ENDIF
This asumes that the parameter accepts multiple values, and A1, etc are the values that you want to assign.
If the parameter accepts a range of numeric values, you would do this
Code:
FOR EACH loParam IN loRep.ParameterFields
IF loParam.Name = "{?Category}"
loParam.ClearCurrentValueAndRange
loParam.AddAddCurrentRange(0, 100, 3)
ENDIF
The "3" means that the range is inclusive.
The above is just meant to give you the general idea. If it doesn't answer your question, you will need to give more details of exactly what you are trying to do. You'll be pleased to know that Craig Bernston, the author of CrysDev, is a regular in this forum, and is always happy to answer questions here.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips, training, consultancy