PDA

View Full Version : Form elemants in dialog repeating - remove form?



John Sourcer
22 Jun 2007, 3:42 AM
Hi All,

I have a form in a dialog which is trggered by a click on a grids row. All works well BUT if I click on another row to launch the dialog again, the form repeats itself. I presume this is because I am re-adding the form to the dialog. How do I stop this. Can you remove a form?

I have tried a check if exists syntax:


if (!myform)

But this seems to have no effect!

liggett78
22 Jun 2007, 3:51 AM
You have to store your dialog in a (global) variable somewhere, not in your local scope inside the function.