I've got the following code (open edge 10.2b):
trouble is this seems to take ages compared just doing a temp table and a for each is there a faster way of doing it? the reason im doing this im trying to create generic code. so you dont have to hard code in what u are doing for each tableX. any ideas would be great I was doing in the following post: http://www.progresstalk.com/showthread.php?117503-Dynamic-temp-table-to-a-static-temptable but that seems to have gone dead
Code:
chrQuery = "FOR EACH " + chrMyTable.
do with frame {&frame-name}:
create query hQuery.
hQuery:set-buffers(hTempTable).
hQuery:query-prepare(chrQuery).
hQuery:query-open().
hQuery:get-first().
brDetail:query = hQuery.
brDetail:add-columns-from(hTempTable).
end.
trouble is this seems to take ages compared just doing a temp table and a for each is there a faster way of doing it? the reason im doing this im trying to create generic code. so you dont have to hard code in what u are doing for each tableX. any ideas would be great I was doing in the following post: http://www.progresstalk.com/showthread.php?117503-Dynamic-temp-table-to-a-static-temptable but that seems to have gone dead