Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't call setfocus() from init() ??????
Message
 
To
30/01/2003 13:56:43
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00747302
Message ID:
00747322
Views:
13
Hello David,

If you have one form (FORM_A) that has some objetcs (Form_A.Text1) and then, you call another form from this object (Form_A.Text1.Valid). For Example: DO FORM_B

So, in FORM_B if you have a SETFOCUS (any event or method) you will receive this error message... It happens because you have a call from a VALID (not necessary the current object).

Sorry about my English, but I think I could explain you what is doing wrong! :-)

[]s!

and... of couse, change the call (DO FORM_B) to LostFocus (instead Valid) and your program will work fine....
If you are not using VFP 7, you could have problems with LostFocus... sometimes it runs twice...

[]s again!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Rodolfo Duarte
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform