I am using this formula to display parameter selections. It is displaying the result with two values past the decimal point. Example, 35.00. I want to display only 35. Can someone recommend a way to modify this formula? thank you!
BeforeReadingRecords;
stringvar PrintString := "";
numbervar i;
PrintString := "";
for i := 1 to count( {?ServiceAreas} )
step 1
do
(PrintString := PrintString +
iif(i = 1,'',', ') +
iif(minimum( {?ServiceAreas} ) = maximum( {?ServiceAreas} ) ,
totext( minimum( {?ServiceAreas} )),
totext ( minimum ( {?ServiceAreas} ) ) +
' - ' + totext ( maximum( {?ServiceAreas} ))));
if Length ( PrintString ) > 0 then
PrintString [ 1 to Length ( PrintString ) ]
BeforeReadingRecords;
stringvar PrintString := "";
numbervar i;
PrintString := "";
for i := 1 to count( {?ServiceAreas} )
step 1
do
(PrintString := PrintString +
iif(i = 1,'',', ') +
iif(minimum( {?ServiceAreas} ) = maximum( {?ServiceAreas} ) ,
totext( minimum( {?ServiceAreas} )),
totext ( minimum ( {?ServiceAreas} ) ) +
' - ' + totext ( maximum( {?ServiceAreas} ))));
if Length ( PrintString ) > 0 then
PrintString [ 1 to Length ( PrintString ) ]