General information
Category:
Forms & Form designer
>>That was painless....(FOR ME!) thanks for the help!
>>
>>dg
>
>Great! The following general principles may also help you in other programming tasks:
>
>1. Variables declared in one method will not be available in another method of the same form. Form-level properties solve this problem. (Public variables are an abomination unto the Lord. - Well, they may be used on rare occasions, but this is not one of them.)
>
>2. These properties may also be objects.
>
>Note that sometimes you will get a dangling object reference. If you have trouble closing a form, it may be that somewhere else you still have a reference to your form.
What variable, value or condition do I check to check the existence of "ThisForm.OtherForm"? I want to make sure the new form is closed before it is called again, because the form creates a cursor to populate the data, and the initial cursor would be destroyed thus causing a problem when returning to the first open instance. Is there a conditional statement to test before issuing ThisForm.OtherForm.Release() ?
This could also be applied when closing the first form as well (if I follow your discussion with Naomi).
Thanks,
dg
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