General information
Category:
Coding, syntax & commands
i get an object error when i release the form explicitly.
what is wrong?
>i have form2 that shows on top of form1. if my user clicks the "ok" button in form2, i want form1 and form2 to be released and show form3.
>
>i have this,
>
>
>thisform.release
>_screen.activeform.release
>if _screen.activeform.caption="form1"
> messagebox ("form1")
>endif
>if _screen.activeform.caption="form2"
> messagebox ("form2")
>endif
>do form form3
>
>
>thisform.release is supposed to release form2 and _screen.activeform.release is supposed to release form1. the code that follows is only to check what form is still active.
>
>why am i getting the messagebox form2 instead of do form form3?
Hi.
I can't tell you why this happens.
But i would suggest releasing form1 and form 2 explicitely and the DO form3.
Kamil
Shout - if you have to,
smile - if you don't.
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