Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 22 JUN 1998 09:20:54AM Steve C. wrote:

I need to close all forms and exit OI from within a

SP. If I need to log people off in a hurry, I have

them running a SP periodically, and if a parameter is

set I am displaying a MSG telling them they are being

logged off. What function can I use to cause OI to close.

Thanks….

Steve C.


At 22 JUN 1998 09:37AM Blaise(Revelation) wrote:

Steve,

This piece of code was posted here not too long ago by Don Bakke.

openWindows=Utility("OBJECTLIST", "", "WINDOW")

This will give you an @FM delimited list of all open OI windows. You can at this point loop through the list and close them all.

If you using an MDIFrame in your app, just close the MDI and the children will close as well.

Good luck…

Blaise


At 22 JUN 1998 09:44AM Dave Pociu wrote:

Steve,

Try this:

x=Utility("DESTROY" , "SYSTEM")


At 22 JUN 1998 09:47AM Steve C. wrote:

Blaise,

Is there not a way using UTILITY or some other function

to simple say "OFF" like we could do from TCL in AREV

and the Engine would close all open forms and close OI

for me?

Thanks…

Steve C.


At 22 JUN 1998 10:03AM Steve C. wrote:

Dave,

Thanks, thats what I was looking for.

Steve C.


At 22 JUN 1998 05:10PM Don Bakke wrote:

Steve,

I can see that Dave has already posted the code you are looking for. The snippet that Blaise quoted from me was not meant for this type of exiting. Instead, my code is best used when you want to have an exit procedure placed on a primary exit button (or the CLOSE event of a main application window). This will close any open windows but will also give the user a chance to save any new work as well.

[email protected]

SRP Computer Solutions

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/b2067b054227be018525662b00495328.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1