BookmarkSubscribe
Choose Language Hide Translation Bar
Highlighted
dqr2
Community Trekker

Closing data tables automatically when a window is closed

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.

0 Kudos
1 ACCEPTED SOLUTION

Accepted Solutions
ian_jmp
Staff

Re: Closing data tables automatically when a window is closed

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.

0 Kudos
2 REPLIES 2
ian_jmp
Staff

Re: Closing data tables automatically when a window is closed

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.

0 Kudos
dqr2
Community Trekker

Re: Closing data tables automatically when a window is closed

Perfect!  Many thanks Ian.

0 Kudos