[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

431.0. "Determining exit from WPS-PLUS editor" by BREAKR::MIKKELSON (Kill me. I need the money.) Tue Apr 07 1992 20:34

    
    I'm using the EDIT function to invoke the WPS-PLUS editor.  What I need
    to find is a way to determine whether the user EXITed or QUIT from the
    editor.  It appears that a WPS-PLUS file is created even if the user
    presses GOLD K without entering any text, so I can't just check for
    the existence of the file.  OA$FORM_DISPOSE appears to be set to 4 
    regardless of how the user gets out of the editor, and
    OA$FORM_TERMINATOR is set to 247 either way.  If I invoke the WPS-PLUS
    editor with a .TXT file extension, the file will not be created if the
    user quits the editor, but that method won't pick up the ruler
    settings we want.
    
    Any suggestions?
    
    Thanks,
    
    - David
    
T.RTitleUserPersonal
Name
DateLines
431.1It should work in a scriptSHALOT::TROTTAIntellectually challengedTue Apr 07 1992 22:1914
    David,
    
    OA$FORM_DISPOSE really should be working.  If you look at
    DOCCREATE.SCP, that's what it uses to determine if GOLD-F or GOLD-K is
    pressed.  If you're doing it interactively, you might not be seeing the
    correct OA$FORM_DISPOSE.  Try <EDIT "file"\GET #Z = OA$FORM_DISPOSE,
    then look at #Z.  It should be 0 or 2.  Maybe you're seeing the value
    after it's been reset by coming back to the menu screen? (but I think
    that would be 3)
    
    BTW, I didn't know OA$FORM_DISPOSE could ever be 4.  Does anyone know
    if this is an undocumented feature?
    
    -- Paul
431.2EDIT function with /SCRIPT qualifierBREAKR::MIKKELSONKill me. I need the money.Wed Apr 22 1992 22:2432
    
    Well, let me try this from another angle.
    
    The customer wanted something set up that would allow them to invoke
    the WPS-PLUS editor from DCL, create a file, and then do some other
    stuff to it after leaving the editor.  Since the customer doesn't have 
    WPS-PLUS for VMS, the only way to access it is through ALL-IN-1.  So, I 
    wrote a little command procedure that basically invokes ALL-IN-1 with 
    an $ ALLIN1/SCRIPT = edit_script qualifier, and the edit_script calls the 
    ALL-IN-1 EDIT function to bring up the WPS-PLUS editor and exit from 
    ALL-IN-1 when the user exits the editor.
    
    This all works fine.  The problem comes about when users try to use
    such things as HELP or GOLD G from within the editor.  Pressing the
    HELP key, for example, produces the message:
    
      FORM USA_LK201
    
      You cannot exit here as you have an edit session open.
    
    Subsequent pressings of HELP result in an "Error occurred during
    operation: NULL_POINTER" message being displayed before dropping back
    to DCL.  Everything works fine when the same script is invoked _after_ 
    entering ALL-IN-1, rather than calling it from the /SCRIPT qualifier.
    GOLD G exhibits similar behavior.
    
    Any ideas?  Is this a question for the WPS-PLUS conference?
    
    - David
    
    
    
431.3Is your input stream for ALL-IN-1 (not WPS-PLUS) correctly set?SKNNER::SKINNERI&#039;m doing my EARSThu Apr 23 1992 00:0612
If I remember my WPS-PLUS correctly (and I may not!), the determination of
which terminal device to use for I/O is setup through logicals.  That's great
for the editing session, but Help and Gold-I and other terminal I/O outside
the editor code will be processing SYS$INPUT, which you may have pointing to
your command procedure, not the user's terminal.

Have you done:

	$ DEFINE/USER SYS$INPUT 'F$TRNLNM("SYS$OUTPUT")
	$ ALLIN1/SCRIPT=...

/Marty
431.4BREAKR::MIKKELSONKill me. I need the money.Thu Apr 23 1992 19:358
    
    Redefining SYS$INPUT does enable the display of FMS forms so that HELP
    and GOLD G work properly, but it also seems to cause ALL-IN-1 to
    access violate if the user quits (GOLD K) rather than exits the editor.
    
    - David
    
    
431.5tell the users to never quit? :-)SKNNER::SKINNERI&#039;m doing my EARSMon Apr 27 1992 18:100