February 6, 201115 yr 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,
February 6, 201115 yr select window [Name: whatever] If [Get LastError] Perform subscript to open the window required (i.e. New Window and then halt script) End if
February 6, 201115 yr 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.
Create an account or sign in to comment