Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus Problem
Message
From
05/03/1999 11:28:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
SetFocus Problem
Miscellaneous
Thread ID:
00194526
Message ID:
00194526
Views:
45
Here's an easy one:

I have an object on a form where I'd like to have the user enter a value, call a form method that searches a table for a valid record, if a record is found enable the other objects on the form ELSE display a messagebox saying the value can't be found and setfocus back to the original object for re-entry. The problem is I can't seem to setfocus back to the original object, I keep going to a command button on the form. I've tried setting focus through the objects valid method but I can't use setfocus with that method so I RETURN 0 or .f., doing this still takes me to the command button. I tried using THISFORM.object.SetFocus in the lostfocus method of the object with the same result. Any hints would be appreciated.
TIA

/Chris
Next
Reply
Map
View

Click here to load this message in the networking platform