[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

694.0. "CAB SELECT to change OA$CURDOC" by KURTAN::WESTERBACK (Mimsy were the borogroves) Fri May 15 1992 21:41

    Hi,
    
    This must be a very easy thing for someone used to ALL-IN-1
    programming, but as I'm not I thought I might ask:
    
    How do you use the CABINET functions? I want to use one,
    how about CAB SELECT, to make the latest document in a
    specified folder become OA$CURDOC, and stay there.
    
    It seems to me that the desired document first becomes
    OA$CURDOC, and then the previous one is returned again...
    This is when just using CAB SELECT "FOLDER".
    
    Thanks,
    Hans
T.RTitleUserPersonal
Name
DateLines
694.1CABINET SELECT exampleSIOG::T_REDMONDThoughts of an Idle MindSun May 17 1992 20:596
    CABINET SELECT "TEST",, #FOLDER, @#CURDOC
    
    will create the first document in the TEST folder. Is that what you
    want?
    
    Tony
694.2KURTAN::WESTERBACKMimsy were the borogrovesMon May 18 1992 00:068
    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.3Questions...KURTAN::WESTERBACKMimsy were the borogrovesMon May 18 1992 12:0310
    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::CARLINDick Carlin IOSG, Reading, EnglandMon May 18 1992 16:1822
    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