General information
Category:
Forms & Form designer
>>What is the best way to close a form in INIT of form if a condition does not exist. My concerns are making sure that everything is released properly. My siuation is that I have a third party active-x control, in the init of the form I need to run a method of active-x and if returns .f. not allow form to open. I want to make sure nothing is left dangling !
>
>Try RETURN .F. from the init method.
Thanks for reply however, I think any object other than a form, returning .f. in init would be fine. I think though that objects contained on form would not be released or they would be left dangling by just returning .f. in INIT of form. I guess I can release or destroy the form. I'll just have to research further.
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