Ask Your Question
0

What is the difference between Dialog.EndExecute and Dialog.Dispose ?

asked 2018-11-08 22:39:14 +0100

shma_lo gravatar image

What is the difference between Dialog.EndExecute and Dialog.Dispose ? Which of them should I use if I execute the same dialog many times? LO 5.4.6.2, Windows 10. Thanks in advance.

edit retag flag offensive close merge delete

Comments

What is meant by "...execute the same dialog many times?". Execute then again execute so the same dialog is open in two instances? If so, what is purpose?

Ratslinger gravatar imageRatslinger ( 2018-11-08 22:46:55 +0100 )edit

No, Execute, then EndExecute (or Dispose?), then Execute and EndExecute again, and so on many times. Can this process take too much resources? For some reason I have to use macro to end dialog.

shma_lo gravatar imageshma_lo ( 2018-11-09 00:33:47 +0100 )edit

It depends upon your dialog and what is being done. As for needing a macro to end it, are you using an OK button in the dialog? How is the dialog constructed & run?

Ratslinger gravatar imageRatslinger ( 2018-11-09 01:05:51 +0100 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2018-11-08 23:02:39 +0100

Ratslinger gravatar image

Hello,

Normally in a dialog you have a button assigned to OK which ends the execution of the dialog. If no OK button is present and macro code is used, then use endExecute. dispose is to free resources which is typically not necessary.

edit flag offensive delete link more

Comments

Can you give an example of Not typically?

shma_lo gravatar imageshma_lo ( 2018-11-09 00:33:49 +0100 )edit

Please see definition -> dispose

If you are having a problem use myDialog.endExecute() followed by myDialog.dispose() or if you have an OK button, follow the myDialog.Execute() with myDialog.dispose().

Ratslinger gravatar imageRatslinger ( 2018-11-09 01:00:39 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-11-08 22:39:14 +0100

Seen: 28 times

Last updated: Nov 08