I want to return text or a number based on the value of a field in a crystal report
local numberVar i; i:=Roundup(({@a}/{@b})*100,0); if{@a}=0 then ToText('N/A') else ToText(i);
the result is always in the crystal report
since the integer value is converted to text using ToText (), integer results are added using .00
user906989
source share