Hello,
I'd like to develop a code which handles queries submitted by users. Users can select which table they want to see.
I'm listing the tables via a screen using _file system table, and when a user selected one of them, I store it in a char variable. But I can't pass it to the include file like this:
def var v_table as char.
{query.i &tbl = "v_table"}
The .i file inserts v_table itself, not its value, thus it can't be compiled:
for each {&tbl} :
display {&tbl}.
end.
The error message is :
Unknown or ambiguous table v_table
Is there any way to resolve this situation? I use only character interface, in Unix.
Thanks in advance.
I'd like to develop a code which handles queries submitted by users. Users can select which table they want to see.
I'm listing the tables via a screen using _file system table, and when a user selected one of them, I store it in a char variable. But I can't pass it to the include file like this:
def var v_table as char.
{query.i &tbl = "v_table"}
The .i file inserts v_table itself, not its value, thus it can't be compiled:
for each {&tbl} :
display {&tbl}.
end.
The error message is :
Unknown or ambiguous table v_table
Is there any way to resolve this situation? I use only character interface, in Unix.
Thanks in advance.