The below formula, copied off Crystal Decisions website (and customized)returns a Boolean value instead of the expected numeric string.
NumberVar i;
stringVar outputcur := "";
//NumberVar finalcur:=0;
For i:=1 To Length({@Current Year's YTD Calculation}) Do
If Asc({@Current Year's YTD Calculation}) In 48 To 57 Then
outputcur:=outputcur+{@Current Year's YTD Calculation};
// finalcur:=tonumber(outputcur);
'Commenting out (//)' the 3rd and last lines was the only thing that enabled me to determine that Boolean values were being returned.
Any explanation or alternative strategy would be appreciated.
NumberVar i;
stringVar outputcur := "";
//NumberVar finalcur:=0;
For i:=1 To Length({@Current Year's YTD Calculation}) Do
If Asc({@Current Year's YTD Calculation}) In 48 To 57 Then
outputcur:=outputcur+{@Current Year's YTD Calculation};
// finalcur:=tonumber(outputcur);
'Commenting out (//)' the 3rd and last lines was the only thing that enabled me to determine that Boolean values were being returned.
Any explanation or alternative strategy would be appreciated.