Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting string parameter input to upper case

Status
Not open for further replies.

mocgp

Technical User
Jul 7, 2006
123
US
Crystal 10; Oracle 9

Is there a way to convert parameter string values to upper case? I need to retain the * option in the parameter, so this precludes the use of the edit mask character >. I can't use the UpperCase function on the parameter in the report filter because it is set to Allow Multiple Values.

I guess another related question might be this: If there is a way to do this in Crystal Pro, will it still work once the report is published in Enterprise?



 


I tried that and I get the "Array must be subscripted" error on the parameter field in line 5 - ucase({?Resource Code})


 
Sorry, forgot the subscript!

numbervar i;
numbervar j := ubound({?Resource Code});
stringvar x;

for i := 1 to j do(
if {ODS_TIDSCHRC.RESOURCE_CODE} like "*"+ucase({?Resource Code})+"*" then
x := x + {ODS_TIDSCHRC.RESOURCE_CODE} + ", "
);
if {?Resource Code} <> "All" then
{ODS_TIDSCHRC.RESOURCE_CODE} in x else
if {?Resource Code} = "All" then
true

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top