buffer for worktable

Posted by Thomas Mercer-Hursh on 18-Jun-2015 15:34

It appears, both from the documentation and from experiments with code, that it is not possible to define a buffer for a work-table aka workfile.  Is this correct?

I can see why one might not, but it had never arisen before.

All Replies

Posted by TheMadDBA on 18-Jun-2015 16:00

It works for me

DEFINE WORK-TABLE wt-test NO-UNDO
     FIELD xxx AS CHAR.

CREATE wt-test.
ASSIGN wt-test.xxx = 'abc'.
 
DEFINE BUFFER X FOR wt-test.

FOR EACH X:
  DISPLAY X.
END.


Posted by Thomas Mercer-Hursh on 18-Jun-2015 16:15

Weird ... works for me now too.  It might just have been timing.  The file I am testing is in a test directory that is not listed in the source directories so I don't get an automatic compile on save.  So, I need to save and then manually compile.  Fumble and do things in the wrong order and one gets mysterious results.

This thread is closed