substituting variables

freak

Member
<shields up>Using Progress 9.1d...


Is there a way to make the snippet display "hello"? I realize "value" does not work but wish it did.

Code:
DEF VAR v1 AS CHAR INIT "hello" NO-UNDO.
DEF VAR v2 AS CHAR INIT "v1" NO-UNDO.

DISPLAY VALUE(v2).
 

freak

Member
Yes I'm aware it does not work and VALUE() will never work for this. It was just a wish. What I need is some way to make the example work. Is progress able to do this in some way?
 

TomBascom

Curmudgeon
Not with a variable. The main problem is that variables do not have handles so you cannot manipulate them dynamically. You could, however, use a temp-table field combined with dynamic query coding techniques.
 
Top