Progress is a pretty new language to me. I'm used to many other languages and am having trouble finding how to use progress for dynamic needs.
I am trying to access a variable's value when getting the name of the variable dynamically.
for example: i have a variable named 'firstname'.
i have a list of the fields the user wants to see (and a list of the corresponding variable names).
is there anyway i can have one function that takes the variable name as a string and returns me the value that the variable is holding?
i know i can call a procedure that way, for example:
def var varname as char initial "procname".
run value(varname).
i hope i was clear as to what i need to do. i need a simple solution.
thanks!
I am trying to access a variable's value when getting the name of the variable dynamically.
for example: i have a variable named 'firstname'.
i have a list of the fields the user wants to see (and a list of the corresponding variable names).
is there anyway i can have one function that takes the variable name as a string and returns me the value that the variable is holding?
i know i can call a procedure that way, for example:
def var varname as char initial "procname".
run value(varname).
i hope i was clear as to what i need to do. i need a simple solution.
thanks!