August 24, 200421 yr 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 ) "
September 2, 200421 yr 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
Create an account or sign in to comment