Message 1 of 6
discuss on DestroyDialog

Not applicable
04-04-2008
04:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When I write codes about rollout and dialogs and then debugging them, I always use destroydialog( ) and createDialog ( ) to "update" the rollout I'm working with.
consider these codes:
code A:
code B:
Well, Code A works fine, while Code B doesn't.
I figure that in code B, when it comes to the statement " destroyDialog theRollout ", theRollout has already been redifined , and the "theRollout" which destroyDialog( ) trying to destroy here is actually not a dialog at the time. The dialog which is created last time is not "theRollout" now. So in code B, when it comes to "destroyDialog theRollout", nothing will happen. Am I right?
On the other hand, Code A is not so convenient since the rollout definations are always extremely huge in size.
Is there any other way to "update" the dialog when debugging it ?
consider these codes:
code A:
if theRollout != undefined then destroyDialog theRollout
rollout theRollout "....."
(
......
)
createDialog theRollout
code B:
rollout theRollout "....."
(
......
)
if theRollout != undefined then destroyDialog theRollout
createDialog theRollout
Well, Code A works fine, while Code B doesn't.
I figure that in code B, when it comes to the statement " destroyDialog theRollout ", theRollout has already been redifined , and the "theRollout" which destroyDialog( ) trying to destroy here is actually not a dialog at the time. The dialog which is created last time is not "theRollout" now. So in code B, when it comes to "destroyDialog theRollout", nothing will happen. Am I right?
On the other hand, Code A is not so convenient since the rollout definations are always extremely huge in size.
Is there any other way to "update" the dialog when debugging it ?