Avatar of Hunt Holmes
Hunt Holmes
 asked on

Error in month crystal report?

Stringvar Array strings := Split({?@V2_month},",");
Stringvar result := "" ;
Numbervar i;
for i := 1 to Ubound(strings) 
do (
 result := result + MonthName(ToNumber(strings[i]) , true)+", " ;

);
MID(result , 1 , len(result) - 2);

Open in new window


The error show number must be between 1 and 12.
Crystal Reports

Avatar of undefined
Last Comment
Mike McCracken

8/22/2022 - Mon
Mike McCracken

WHat data is being entered for ?@V2_month?
Either a non-numeric or a value outside that range.

mlmcc
Hunt Holmes

ASKER
The data is pass in numeric 1,2,3 and i want to view it as Jan, Feb, Mar
ASKER CERTIFIED SOLUTION
Mike McCracken

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy