I have a script that extracts data from a database and returns a randum number of tables. I'd like to have all tables gathered in one window where a user can scroll down to see tables instead of having the tables behind each other. I have tried an approach where i make the calls to the database and afterwards make a new window and loop through all tabels and append them to the window (see below) but that does not work. Maybe the approach is all wrong and I have to start by creating the window and then add the tables when they are returned for the database or...?
thanks in advance 
Hans Jørgen
nw
= New Window( "EDC lag time reports for "|| Ttrial || "", show menu(0), show toolbars(0))
;
for
( i = 1, i<= N Table(), i
++,
nw
<< Append( Data Table(i) )
;
)
;