hi,
I am using the following which I got from tek-tips FAQ -- its really awesome. I have been wanting to do this.
Now one of my parameters shows {ALL} as a default parameter, all i want to do is get rid of the curly brackets and simply show ALL.
Is there a way to put an If else statement in the code below?
whileprintingrecords;
stringvar Output:="";
numbervar Counter;
For Counter := 1 to ubound({?Department }) do(
if minimum({?Department }[Counter])= maximum({?Department }[Counter]) then
Output:= Output & minimum({?Department }[Counter])& ","
else
Output:= Output & minimum({?Department }[Counter])& " to "& maximum({?Department }[Counter])& " , "
);
left(Output,len(Output)-1)
I am using CR version 10
Thanks
Rob
I am using the following which I got from tek-tips FAQ -- its really awesome. I have been wanting to do this.
Now one of my parameters shows {ALL} as a default parameter, all i want to do is get rid of the curly brackets and simply show ALL.
Is there a way to put an If else statement in the code below?
whileprintingrecords;
stringvar Output:="";
numbervar Counter;
For Counter := 1 to ubound({?Department }) do(
if minimum({?Department }[Counter])= maximum({?Department }[Counter]) then
Output:= Output & minimum({?Department }[Counter])& ","
else
Output:= Output & minimum({?Department }[Counter])& " to "& maximum({?Department }[Counter])& " , "
);
left(Output,len(Output)-1)
I am using CR version 10
Thanks
Rob