Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Results of array formula

Status
Not open for further replies.

LisaRR

Technical User
May 2, 2003
31
0
0
US
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 ) ]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top