how can i pass Temp table buffer

atuldalvi

Member
I want to pass a current record buffer of temp table to a procedure.

Such as

do i =1 to 10:
create TT.
assign Custno = 1.
run procedure(current record buffer).
end.

is it possible.
 
you can assign a handle to point at ur table.. then use BUFFER-FIELD and buffer-value commands to help you get what you want


Code:
define var hanHeaderBuffer as handle.   

hanHeaderBuffer = buffer TT:buffer handle.   


run procedure(hanHeaderBuffer).
 
RUN procedure (TABLE TT).

and in the internal procedure, define an input parameter for this temp-table, the help page for DEFINE PARAMETER has the syntax on how to do it..
 
Back
Top