Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Event Processing Basic Query...
Message
From
01/07/1999 09:15:49
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
30/06/1999 19:24:31
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00236220
Message ID:
00236405
Views:
11
>I'm obviously missing something very basic here.
>This is the nitty gritty - the event management that I can't grasp within vfp.
>
>I have two ways a user might enter the address book from other forms. Both take the form 'do form address'. One works as expected. When the user presses 'alt a' the program executes 'do form address'. The form loads and sits there waiting for user input until they 'quit' the form.
>
>The second one is activated in response to the user answering (affirmatively) the question 'add new address now?' from the validation method in the other form . This then also executes 'do form address', loads the form, activates the first page but then continues past the 'do form address' line without stopping to let the user do anything.
>
>I can vaguely understand that part of the problem is that for the 'problem' code I'm calling the form from within the validation method of another form. But I don't understand why that should be an issue.
>
>I've bodged around the problem by having the address form set itself to windowtype 1 if called from the other form's validation method and this works. But I'm sure that can't be the way it's supposed to be done!

You can change the type (modal/modeless) when you call the form's show(1) method. Usual trick is to do this:

do form address name oFrmAddres NOSHOW
* this will run it modal:
oFrmAddress.Show(1)
rele oFrmAddress

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform