Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus problem
Message
 
To
22/11/1998 10:06:57
Juan Kh
Dataprop Technologies
Sungai Petani, Malaysia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00160296
Message ID:
00160312
Views:
17
Juan,

I had a similar problem because firing some methods withing a Valid or LostFocus method will cause the LostFocus and Valid to fire twice causing problems sometimes. I was able to solve my problem by putting only the code that caused the second Valid/LostFocus into the KeyPress Method and leaving the rest in the Valid. This worked in my case, it might not for you.

Ed

>Hello,
>
>I have problem with setting focus to another control after I am done with the current control. I issued "thisform.nextcontrol.setfocus()' from within 'thisform.currentcontrol.lostfocus()' method. It is observed that 'thisform.currentcontrol.lostfocus()' got executed again right after the 'thisform.nextcontrol.setfocus()' code. Can anyone tell me how to setfocus to another control, peacefully?
>
>I tried to code in keypress event, but the code triggered only if the is key press. I cannot issue setfocus from within valid() event.
>
>Man, there gotta be a better way to do this.
>
>Thanks,
>juan
Previous
Reply
Map
View

Click here to load this message in the networking platform