If have an external procedure with a temp-table, and, inside an internal procedure, I create a buffer for this temp-table using the create buffer statement. It crashes with the error:
Could not create buffer object for table TT. (7334)
However, the same piece of code runs perfectly in the external procedure's block.
Does anyone have an explanation for this strange behavior?
Thanks...
The code...
def temp-table tt no-undo
field f1 as int
field f2 as char
index idxF1 is Primary Unique
f1.
def var h as handle no-undo.
create buffer h for table 'tt':U.
message valid-handle(h).
run p.
procedure p:
def var h as handle no-undo.
create buffer h for table 'tt':U.
message valid-handle(h).
end procedure.
Could not create buffer object for table TT. (7334)
However, the same piece of code runs perfectly in the external procedure's block.
Does anyone have an explanation for this strange behavior?
Thanks...
The code...
def temp-table tt no-undo
field f1 as int
field f2 as char
index idxF1 is Primary Unique
f1.
def var h as handle no-undo.
create buffer h for table 'tt':U.
message valid-handle(h).
run p.
procedure p:
def var h as handle no-undo.
create buffer h for table 'tt':U.
message valid-handle(h).
end procedure.