10 values in Substitute- compile error

10 variables in Substitute- compile error

Code:
ASSIGN
            lcOutput =  SUBSTITUTE("&1;&2;&3;&4;&5;&6;&7;&8;&9;&10":U,
            variable1,     /* &1  */
            variable2,     /* &2  */
            variable3,     /* &3  */
            variable4,     /* &4  */
            variable5,     /* &5  */
            variable6,     /* &6  */
            variable7,     /* &7  */
            variable8,     /* &8  */
            variable9,     /* &9  */
            variable10    /* &10 */
         ).
why isn't this working?

it works well with 9 variables but not with 10.

has someone an idea?

btw. im using Progress 9.1D
 

UncleNel

New Member
To use more than 9 parameters in a substitute function, make the 9th parameter another substitute function. You can chain these very easily together, although could be difficult to understand. Watch out for unknown values (?) in any of the parameters. One (?) will make the whole returned string an unknown value. Good luck.
 
Top