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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

join function (v8.5)

Status
Not open for further replies.

le1burg

Programmer
Mar 6, 2006
33
US
Got a brain teaser here...

I accept any number of numbers via a parameter, they simply keep adding until done. Okay, now I wish to display them in the report. This is easily done if I were dealing with a string using the join function but doesn't work for a number parameter...

Thanks much in advance...
 
Use a formula like this:

numbervar i;
numbervar j := ubound({?parm};
stringvar display;

for i := 1 to j do(
display := display + totext({?parm},0,"") + ", "
);
left(display,len(display)-2)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top