We help IT Professionals succeed at work.

Error in month crystal report?

Hunt Holmes
Hunt Holmes asked
on
82 Views
Last Modified: 2017-07-08
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.
Comment
Watch Question

Mike McCrackenSenior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013

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

mlmcc

Author

Commented:
The data is pass in numeric 1,2,3 and i want to view it as Jan, Feb, Mar
Senior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION