Exit Filepro Without Saving

Mike Schwartz mschw at athenet.net
Fri Sep 30 11:36:57 PDT 2011


> -----Original Message-----
> From: filepro-list-bounces+mschw=athenet.net at lists.celestial.com
> [mailto:filepro-list-bounces+mschw=athenet.net at lists.celestial.com] On
> Behalf Of Jeff Harrison
> Sent: Friday, September 30, 2011 12:45 PM
> To: haroldef; 'FilePro Mailing List'
> Subject: Re: Exit Filepro Without Saving
> 
> ----- Original Message -----
> 
> > From: haroldef <haroldef at sbcglobal.net>
> > To: 'FilePro Mailing List' <filepro-list at lists.celestial.com>
> > Cc:
> > Sent: Friday, September 30, 2011 1:12 PM
> > Subject: Exit Filepro Without Saving
> >
> > I guess I am too dense, as I cannot find an answer.  How does one
> > leave a filepro program without saving the record.
> >
> > I have tried "save off" but how does one automatically terminate the
> > program?
> >
> > Even though I have ":then: save off"
> >
> > if I have:
> >
> > input popup ex "Key 'X' to exit";end
> >
> > if: ex = "X"
> > then: exit
> >
> > The record gets saved.
> >
> > I want this to be simple for the user to exit the program.  I do not
> > want him to have to key "CTRL-C."
> >
> > Harold
> >
> 
> Are you sure there is no write command before the exit somewhere?  I
> believe that an exit should cause you to exit without saving.
> 
> Jeff Harrison
> jeffaharrison at yahoo.com
> Author of JHExport and JHImport

     I'm  quite sure the record gets written to disk before you exit.  I've
used "exit" to insure only one record gets created and written in a file at
a time, and it's always worked that way.    I'll check the STN bible or
Laura's notes when I get back to my office.  I've used the "exit code" after
exiting to signal the calling program whether or not the new record creation
worked, but I don't recall that syntax or which version of filePro added the
exit status.  I think you do 'exit "1"' to return an exit code.

Mike Schwartz 




More information about the Filepro-list mailing list