Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7390 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hopefully someone has discovered a more elegant solution to this problem. I have a database that makes extensive use of multiple windows. When finished, I want the user to be able to logout, closing all windows and returning to the login window. My first solution was roughly like this:

Loop

Exit Loop If ( ValueCount ( WindowNames ) ? 1 )

Close Window [ Substitute ( MiddleValues ( Get ( WindowNames ) ; 2 ; 1 ) "

  • 2 weeks later...
Posted

You might be able to use the TableNames function to get a list of all tables in the file, and then user Get( LayoutTableName ) to get the table that the current layout is connected to, and then compare and see if Get( LayoutTableName ) is found in TableNames, but I don't know yet how you're going to know when you're at the last one and keep from closing it.

However, since you're creating these new windows, probably with scripts, you've named them, right? So you know the names of the windows you want to close. Can't you use that to close all the windows that you've created?

Chuck

This topic is 7390 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.