how to pass temp table ?

tamhas

ProgressTalk.com Sponsor
There are lots of options. What is your problem?

Of course, to my taste, the best solution is to wrap the TT in code which provides all the needed access and then to use that SP or Class in your code, accessing the methods instead of the TT directly. Then, you never need to pass it and there is only one place it needs defining and only one place it needs maintenance.
 

skunal

Member
There are lot of options to pass temp-table u can pass temp-table as an handle parameter or u can also send the temp-table as normal output-input parameter abc.p(input table abc),BUT passing as an handle is an good option.
 

KleineCuypie

New Member
You can pass a temp-table record like this:

Code:
CREATE tt-customer.
tt-customer.name = "This is the name".
RUN test(TEMP-TABLE tt-customer:DEFAULT-BUFFER-HANDLE). /*this is your current tt-customer record*/

PROCEDURE test:
DEFINE INPUT PARAMETER hCustomer AS HANDLE NO-UNDO.
strName = hCustomer::name. /*strName will be 'This is the name'*/

I guess this is the solution for your problem. It's a simple example but I think it should help.

Grtz Tim.
 
Top