Skip to Content
0
Sep 25, 2019 at 08:36 PM

how to convert string array to double array in crystal report

122 Views

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;