Hopefully someone can help!
I have a number of already defined strings ie: abc1 abc2 abc3. I also have another string v-hold used to dynamically generate the string value ie: v-hold = "abc" then incrementing an integer to get one of the above predefined strings.
So basically,
def var abc1 as char no-undo.
def var abc2 as char no-undo.
def var abc3 as char no-undo.
def var v-hold as char no-undo.
def var I as int no-undo.
abc1 = "newstring".
do I = 1 to 3:
v-hold = "abc" + string(I).
display v-hold.
end.
How do I display the value of the dynamically generated string. In this case the value of "abc1" being "newstring".
Thanks
I have a number of already defined strings ie: abc1 abc2 abc3. I also have another string v-hold used to dynamically generate the string value ie: v-hold = "abc" then incrementing an integer to get one of the above predefined strings.
So basically,
def var abc1 as char no-undo.
def var abc2 as char no-undo.
def var abc3 as char no-undo.
def var v-hold as char no-undo.
def var I as int no-undo.
abc1 = "newstring".
do I = 1 to 3:
v-hold = "abc" + string(I).
display v-hold.
end.
How do I display the value of the dynamically generated string. In this case the value of "abc1" being "newstring".
Thanks