Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple textbox quest
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00787326
Message ID:
00788204
Views:
25
Glenn, that worked perfect. Can you briefly explain how it works and about the pemstatus? Is the dodefault() critical?

>You could do the following in the "save" method
>
>
>Form::Save
>if type('thisform.activecontrol.name') = 'C' and ;
>  pemstatus(thisform.activecontrol,'value',5)
>    thisform.activecontrol.value = thisform.activecontrol.value
>endif
>dodefault()
>
>
>>On a form I have with a slew of textboxes, normal proceedure is for a user to make his/her changes and hit F1 to save. If a user makes a change to a textbox's data, they have to hit ENTER(or a textbox lost.focus must occur) for the data to be saved. In other words, if they make a change and don't hit ENTER, then hit F1, the data is not saved. Is there a way to eliminate the need for ENTER after changing a txtbox value?
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform