[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Foot-Warner?



Warmest Thanks for previous help!   -  Here is the Problem...

The application is selecting and writing records into a flat ASCII file,
"c:\foobar.txt".  It could run a long time. (Platform is PeopleSoft windows
NT)

The User is looking at the minimized SQRW button in the Tray. User gets bored
and decides to bail out by right clicking this icon and selecting "Close."

Thus the file on c:  is PARTIALLY written and sitting there.
------
The question: Can the user's electing to ABORT  fire an event WITHIN the SQR
code to WRITE a footer message to this file before closing it?
Such as:
"WARNING!  This file was terminated by operator, and may be corrupt or
incomplete!"

Alternatively, is there a way - within the SQR code - to close and blow away
the file fragment if the user bails out.  That way the user only gets all or
none.

All best,

Norman Dolph