Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with events
Message
From
26/05/1999 08:14:20
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00222837
Message ID:
00222861
Views:
26
>>I have two textboxes and when I use the key tab to go from on to the other textbox four events will occur:
>>
>>Textbox1.Valid
>>Textbox1.Lostfocus
>>Textbox2.When
>>Textbox.2.GotFocus
>>
>>But if I do the same with mouse the events will occur like this:
>>
>>Textbox1.Valid
>>Textbox2.When
>>Textbox1.Lostfocus
>>Textbox.2.GotFocus
>>
>>Why the events occur not in the same order when I select a textbox with a mouse click or the tab key.
>>How I can change the order of these events?
>
>I'm aware of this, it's just the way they work when using mouse click...the easiest way to avoid problems is to stick with placing your code in Gotfocus & Lostfocus only, or at least avoid using When...

esp. considering (it seems) When is there for backward compatability only
it is not a stdard event and also in most cases Keypress event etc. are more suited for the job

Arnon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform