Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keeping the focus in a field
Message
From
01/03/2003 22:08:40
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Keeping the focus in a field
Miscellaneous
Thread ID:
00760065
Message ID:
00760065
Views:
59
I am designing a form on which I have a number of text boxes and command buttons. When a particular condition exists, I would like to keep the focus on a certain textbox while I move the record pointer through a table. I have tried to accomplish this by using a DO WHILE loop but have met with little success. It seems no matter what I try, I cannot keep the focus on an object, in this case the textbox. I have resorted to setting a formwide condition and when the condition is in effect, I have return a .f. from the other text boxes on the form. This sort of works except that the focus shifts to the command buttons. If I put the same code in the WHEN event of the command buttons my EXIT FORM button refuses focus so I cannot gracefully exit the form. Perhaps I am approaching this all wrong. Maybe I shouldn't try to use a loop in event program, I'm not sure. All suggestions are appreciated.

Regards ,
Carmen
Next
Reply
Map
View

Click here to load this message in the networking platform