General information
Category:
Coding, syntax & commands
Possibly it happens because form is destroyed before MyPrg is completed. Try to add some code to suspend form destroy execution until MyPrg is completed.
>I have the following code in Destroy event of a form:
>Do MyPrg with thisform
>
>In MyPrg:
>Parameters oForm
>wait window oForm.caption .......
>
>Most of the time this works but the ODD occasion, an error comes up saying oForm is not an object. I cannot repilcate this myself on testing but it has happened a few times out on site !!!!
>
>Is it possible for the Screen to be destroyed by the time the code is run ? or is there any other reason this would not work ?
>
>Regards,
>
>Gerard
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only