#Code Snippet

6 Followers · 304 Posts

Code snippet is a programming term for a small region of re-usable source code, machine code, or text.

New
Question Mikhail (VetsEZ) Akselrod · May 11

What is wrong with the *inc file code below:

#define ArrayToString(%array,%out,%del)      set %out="" for { ##continue
                                                                                   set key=$order(%array("")) quit:key="" ##continue
                                                                                   set %out=%out_%del_key ##continue
                                                                               } quit

Compilation at calling classmethod as : Set tQStr = $$$ArrayToString(pQArray,tQStr,"##") brings error as:

8
0 73