How to Close Application WITHOUT prompting to save file.

D

Dj

I've written a funtion that calls Application.Quit(false);. The help for
that object says that the param FALSE will close the InfoPath application
without saving any of the forms and using TRUE will prompt users to save
forms.

However, with me using FALSE, it's still prompting me if I want to save my
changes. I don't want my inexperienced users to even get that prompt
because, inevitably, half will say yes. The file is emailed and all changes
should be aborted.

I tried closing the form first, then calling the Quit, but then I got an
error - I'm guessing because my file with the function call had been closed
BEFORE the close application call.

Should I use the ExternalApplication Object? I saw something about that
being "depreciated" in 2003. I'm guessing that means no longer available.

Thanks an advance. Dj
 
M

maury

I've written a funtion that calls Application.Quit(false);. The help for
that object says that the param FALSE will close the InfoPath application
without saving any of the forms and using TRUE will prompt users to save
forms.

However, with me using FALSE, it's still prompting me if I want to save my
changes. I don't want my inexperienced users to even get that prompt
because, inevitably, half will say yes. The file is emailed and all changes
should be aborted.

I tried closing the form first, then calling the Quit, but then I got an
error - I'm guessing because my file with the function call had been closed
BEFORE the close application call.

Should I use the ExternalApplication Object? I saw something about that
being "depreciated" in 2003. I'm guessing that means no longer available.

Thanks an advance. Dj

I'd like to know this as well.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top