General information
Category:
Coding, syntax & commands
-snip-
>
>This has been a problem most of the day. I originally put this in the MYINITIALFORM.LOAD but had problem with the aborting and grid references again. I really think it needs to be outside MYINITIALFORM but not sure quite where or how. In some other apps I have written, they open to a form that is a system menu. That makes things easier but this app is basically one form and doesn't need a menu for one single item.
>
>
>Suggestions?
How about this:
Make your system settings form modal, return a value in the Unload event that indicates if the user has populated the required fields.
Call your system settings form from your initial form's Load event, capturing the return value to a property of the form: "do form mysystem to this.ok"
In the Init event of the initial form, check the value of this.ok (returned from the system form) and return .f. if the returned value indicates that the system form was not populated. This will prevent the initial form from loading.
Make sure you CLEAR EVENTS so that the app closes.
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