cancel
Showing results for 
Search instead for 
Did you mean: 

how to convert string array to double array in crystal report

0 Kudos

i have column feild in formt of string contains text in the form like 1,22,23,41,54 etc.,i want to convert it to double array to pass it as Y axis in chart. i did formula named it

i did the formula below but giving me error the result cannt be an array

<code>//create an array of strings by parsing a underscore-delimited string 
field
StringvarArray strings :=Split({rprt.DrawWbc},",");//empty numeric array; sized to matchNumbervarArray numbers;Redim numbers[Ubound(strings)];//populate arrayNumbervar i;for i :=1 to Ubound(strings)do(
numbers[i]:=ToNumber(strings[i]));//return 
numbers;

Accepted Solutions (0)

Answers (0)