How to change the variable length in Progress?

Discussão em 'StackOverflow' iniciado por fdantas, Setembro 18, 2015.

  1. fdantas

    fdantas Administrator Moderador

    I'm pretty new to progress and I want to ask a question.

    How do I change variable (string) length in runtime?

    ex.
    define variable cname as char.
    define variable clen as int.

    cname= "".
    DO cnts = 1 TO 5.
    IF prc[cnts] <> "" THEN DO:
    clen = clen + LENGTH(prc[cnts]).
    cname = cname + prc[cnts].
    END.
    END.


    Put cname format '???' at 1. /here change variable length/

    Thanks for the reply

    Continue reading...

Compartilhe esta Página