Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text Boxes.
Message
From
12/07/2000 12:27:50
 
 
To
12/07/2000 12:18:00
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00391316
Message ID:
00391321
Views:
10
>Hi all.
>
>Got another question.
>
>When editing a record using a form with textboxes..if the user enters data in a textbox and then click on the menu to save record without moving out of textbox...the valid event and lost focus doesn't fire and the data in the textbox is not saved?????
>
>Any one know's why this happening...and how to work around it??
>
>Thanks
>Carl

Menus and Toolbars do not get focus, so focus is not moved from the textbox and so the Valid/Lostfocus events are not fired. Several workarounds are generally used. One is to programmatically move focus so the events fire. I believe there is a function in either the FAQ here or files section that will do the necesary work to insure the data is updated. Someone else may know the specific function. I generally put a "Save" button on the form, not in menus or toolbars so this is not a problem.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform