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.
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.
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.