The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Closing Form on open (in SLX 6.2)
Posted: 16 Feb 07 1:16 PM
|
fiogf49gjkf0d Hi,
I am trying to close form on open event. But it is not working. I am using the following code to close the form in open
Application.BasicFunctions.CloseCurrentView(True)
Even i tried with this also: Application.BasicFunctions.CurrentViewCancelShow
None of them is working. Please assist how to close a form on open event.
Regards.. |
|
|
|
Re: Closing Form on open (in SLX 6.2)
Posted: 16 Feb 07 1:27 PM
|
fiogf49gjkf0d Closing a form on it's open event never really works. A better approach is to add code to prevent the form from opening in the first place. |
|
|
| |
|
Re: Closing Form on open (in SLX 6.2)
Posted: 16 Feb 07 2:02 PM
|
fiogf49gjkf0d OnOpen wouldn't work but I believe OnChange should. Since that happens after the controls are initialized from the database it shouldn't cause as much of a hiccup.
With regards to an example it would have to be in context of what you're doing. If you're closing the form because of a missing value for instance, query the value ahead of time and only open the form if it's present. |
|
|
| |
|