How To Change The Variable Length In Progress?

Status
Not open for further replies.
N

noob

Guest
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...
 
Status
Not open for further replies.
Top