AnsweredAssumed Answered

In Groovy how do I remove a leading comma from a string?

Question asked by GregHuxley8361 on Jul 17, 2014
Latest reply on Mar 2, 2017 by sudhiman351690
In my Groovy script I construct a string value which starts with a leading comma e.g. ",123456-01,7890123-02,456789-03".  At the end of the script I need to remove the leading comma before saving it to a dynamic process property.  Does anybody know how to remove the leading comma?  I have tried substring but recieve a class error giving the impression that string.substring function does not exist.

Thanks,
Greg

Outcomes