how to create comma separated value in progress openEdge

Discussão em 'StackOverflow' iniciado por fdantas, Junho 2, 2016.

  1. fdantas

    fdantas Administrator Moderador

    newbie question here.

    I need to create a list. but my problem is what is the best way to not start with a comma?

    eg:

    output to /usr2/appsrv/test/Test.txt.
    def var dTextList as char.
    for each emp no-lock:
    dTextList = dTextList + ", " + emp.Name.
    end.
    put unformatted dTextList skip.
    output close.


    then my end result is

    , jack, joe, brad


    what is the best way to get rid of the leading comma?

    thank you

    Continue reading...

Compartilhe esta Página