StPeter Posted February 6, 2011 Posted February 6, 2011 Hi, With a button-click, i want to go to a specific layout. If there isn't a window open with this layout, it should open the layout in a new window. If this layout is already open, it should just bring the appropriate window to the front. FYI: i'm using multiple files in my application Sounds basic ... but can nevertheless not get my arms around this ( Anybody who knows how to do this? Thx,
efen Posted February 6, 2011 Posted February 6, 2011 select window [Name: whatever] If [Get LastError] Perform subscript to open the window required (i.e. New Window and then halt script) End if
bcooney Posted February 6, 2011 Posted February 6, 2011 That's almost there, efen, except that does not guarantee that the existing window is on the correct record. So, I'd add a capture of the current key into a $var, and if (get (lasterror) do a find in the existing window for that $var.
StPeter Posted February 6, 2011 Author Posted February 6, 2011 Thank you so much guys, that does the trick :B
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now