[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

3332.0. "EDIT function with WPS-PLUS leaves a corrupt file when quitting" by BOOZER::MARTIN::BELL (Martin Bell, NTCC, Birmingham UK) Mon Sep 27 1993 17:42

If i use the standard EDIT function to create a file in WPS-PLUS format
but quit out, ALL-IN-1 (or maybe WPS-PLUS) leaves a "corrupt" file.

eg.

<EDIT "A.WPL"
{gold Q}Y{return}
<EDIT "A.WPL"

returns an error "Not a document".

So it appears that quitting out still leaves a file, but that file has
an incorrect (not full WPS-PLUS) structure.

Does anyone know why?

mb
T.RTitleUserPersonal
Name
DateLines
3332.1WPS-PLUS Editor problemIOSG::NEWLANDRichard Newland, IOSG, REO2-G/L2Tue Sep 28 1993 11:5713
This is a problem with the WPS-PLUS Editor.  The other editors that can be 
called using the EDIT function know if they are creating a new file and 
know to delete it if the user quits the edit session.

I suggest you ask in the WPS-PLUS conference.

The problem does not occur in the ALL-IN-1 WP and EM sub-systems because if 
the user quits a CABINET DELETE_DOCUMENT is performed to delete the file 
cabinet information which also deletes the RMS file.


Richard

3332.2Easy to fix, but unnecessary!BOOZER::MARTIN::BELLMartin Bell, NTCC, Birmingham UKTue Sep 28 1993 13:4013
Thanks for the explanation Richard.

I should be able to write some code around the EDIT function that deletes
the old file if the user quits, but it is a shame that WPS-PLUS does not
do it for you automatically.

I will give the WPS-PLUS conference a try as well, but getting a response
out of there is like waiting for Digital to start it's latest advertising
campaign ;-)

Cheers,

mb
3332.3OA$FORM_DISPOSEIOSG::NEWLANDRichard Newland, IOSG, REO2-G/L2Tue Sep 28 1993 14:528
Your code needs to test the value of the symbol OA$FORM_DISPOSE, which will
be: 

	0  -- if the user quit the editing session
	2  -- if the user completed the editing session


Richard
3332.4BOOZER::MARTIN::BELLMartin Bell, NTCC, Birmingham UKTue Sep 28 1993 16:047
Thats almost  what i was already doing, but using IFEXIT as a quick way
out. Now i will have to change things to perform a followup action on both
file and quit outcomes.

Cheers,

mb