Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When event fires at different times !!!
Message
From
25/02/2003 06:47:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00757449
Message ID:
00757460
Views:
12
>Does anybody know if I am correct in the following:
>
>With a Command Button:
>The when event fires 'After' the click event , if I click on the button
>The When event fires 'Before' the click event if I tab into the button.
>
>According to the text at the bottom of the button in VFP, the When event is supposed to fire "When..occurs before a Control Receives the focus'
>
>If the above is the case, it makes using the When event very difficult. I canot be sure if the code is going to fire 'on entry' to the button (which is where I would expect it to fire or on 'Exit' from the button (which can be too late)
>
>(I also notice that this is NOT the behaviour for Text boxes.
>
>
>If anybody else has come across this and found a way to ALWAYS 'Force' the when event to fire Before the Click event, I'd apprecaite any tips.
>
>regards,
>
>Gerard

Gerard,
I use enabled instead.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform