T.R | Title | User | Personal Name | Date | Lines |
---|
694.1 | CABINET SELECT example | SIOG::T_REDMOND | Thoughts of an Idle Mind | Sun May 17 1992 17:59 | 6 |
| CABINET SELECT "TEST",, #FOLDER, @#CURDOC
will create the first document in the TEST folder. Is that what you
want?
Tony
|
694.2 | | KURTAN::WESTERBACK | Mimsy were the borogroves | Sun May 17 1992 21:06 | 8 |
| Yep, that seems to do it. At first I was confused because sometimes
it worked, and sometimes it returned OA-I-CAB_CANT_FIND. It turned
out to be if #FOLDER has a value it doesn't work. I can't quite see
why sometimes it's assigned a value and sometimes not, but it seems
to be OK if I just assign it "" before doing the CAB SELECT.
Thanks,
Hans
|
694.3 | Questions... | KURTAN::WESTERBACK | Mimsy were the borogroves | Mon May 18 1992 09:03 | 10 |
| Tony, now that I'm trying to figure this out with the Fine Manual,
why did you suggest using #FOLDER as third parameter?
It seems to me that I get what I want with
CABINET SELECT "TEST",,,@#CURDOC
And what is the meaning of @#CURDOC instead of just #CURDOC?
Hans
|
694.4 | @ | IOSG::CARLIN | Dick Carlin IOSG, Reading, England | Mon May 18 1992 13:18 | 22 |
| Hans, all you need is:
CABINET SELECT "TEST"
If you want to simultaneously save the folder/docnum of the selected
document you can do, for example:
CABINET SELECT "TEST",,,#SAVE_IT
The @ is the indirection (InCurL) operator.
The following:
CABINET SELECT "TEST",,,@#CURDOC
will store the folder/docnum in the symbol whose name is contained in
#curdoc. If you examine #curdoc while you are in WP you will find it
contains "$WPDOC" and in EM it contains "OA$CURMES" (not the most
consistent of naming conventions!). This is done so that individual
subsystems can remember their own "last-accessed" document.
Dick
|