Subscribe Bookmark RSS Feed

Closing data tables automatically when a window is closed

dqr2

Community Trekker

Joined:

Jun 19, 2015

Hi,

I have a script which produces both a data table and a window which contains some charts derived from that data table.  I'd like to arrange for the data table to be closed if the user closes the chart window.  How do I do that please?  I've tried using the "<< on close" property of the window, but am evidently doing something wrong as it appears to be having no effect.

(Obviously I could add a button within the window to close the window that way and tell the user to click on it, but there's no guarantee that they'll actually do that: some users will simply close the window by means of the "X" button at the top-right.)

Many thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

From memory you need the 'OnClose()' message immediately after the window title. It's really quite useful for housekeeping (like closing invisible tables) and other things.

2 REPLIES
Solution

From memory you need the 'OnClose()' message immediately after the window title. It's really quite useful for housekeeping (like closing invisible tables) and other things.

dqr2

Community Trekker

Joined:

Jun 19, 2015

Perfect!  Many thanks Ian.