Re: equiv. of C's strcat????
Posted in 1993
->From: fichtel@perch.crd.ge.com ->Subject: equiv. of C's strcat???? ->Date: Mon, 26 Jul 1993 18:23:57 GMT ->Reply-To: fichtel@perch.crd.ge.com ->Organization: General Electric CR&D -> ->i have a table where i store one argument in each row ->and i want to print these,in a report, where they ->are all on the same line seperated by a comma. ->how can this be done?is there an equiv. of the ->C function strcat? ->please send replys to email address below. ->thanks in advance ->peter fichtel ->fichtel@shark.crd.ge.com In a report within a 4GL program, you want to do something like this: REPORT concat ( item ) DEFINE item { its data type } FORMAT ON EVERY ROW PRINT item, ", " ; { The ; suppresses output of newline. } ON LAST ROW PRINT { Outputs newline at very end of report. } END REPORT If you don't want a comma after the last item, or if you want a maximum of N items per line, you need to add some count mechanisms to control these. However, the report above satisfies your needs as stated. Similar functionality is also available in ACE. Regards, Alan ___________________________ ______________________| R. Alan Popiel |__________________________ \\ Internet: | Martin Marietta, Tech Ops | / \\ alan@den.mmc.com | P.O. Box 179, M/S 5422 | Std disclaimers apply. / )Voice: | Denver, CO 80201-0179 USA | ( / 303-977-9998 |___________________________| (But you knew that!) \\ /________________________) (____________________________\\