updating records of a dynamic temp-table

Posted by hutcj on 01-Oct-2019 18:33

Is it possible to update dynamic temp-table records from a user input screen?

For example:

DEFINE VARIABLE tth AS HANDLE NO-UNDO.
DEFINE VARIABLE bh AS HANDLE NO-UNDO.

CREATE TEMP-TABLE tth.
tth:ADD-LIKE-FIELD(...).
/* add all the fields needed */

tth:TEMP-TABLE-PREPARE("ttName").
bh = tth:DEFAULT-BUFFER-HANDLE.

bh:BUFFER-CREATE.

UPDATE tth. /* obviously this does not work because that's not how the update statement works, but is there something similar I can do to accomplish the same thing as if this was a static temp-table? */

All Replies

This thread is closed