Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More SetFocus Problems
Message
From
24/05/1999 12:34:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
More SetFocus Problems
Miscellaneous
Thread ID:
00222113
Message ID:
00222113
Views:
46
I have what seems to be a standard problem -- only the standard fix is not working for me.

I have a formset which includes a toolbar -- "save" button is on the toolbar which does an tableupdate() wrapped in a transaction.

When a user clicks on the save button, the value of the current control is lost.

Of course I tried putting _Screen.Activeform.activecontrol.setfocus() in the click methods of both the toolbar and save button. No joy. I thought maybe there was a reference problem -- so far test purposes I hard coded to following to prevent the revert in only one control:

frmsuppliers.frmdata1.txerr1.setfocus() && SET FOCUS ON ACTIVE CONTROL
This is in the click event of both the toolbar and save button within the toolbar. The control the user is in when save is clicked still reverts if the user has not pressed enter or moved to another control before saving.
Thanks

Gar W. Lipow
Next
Reply
Map
View

Click here to load this message in the networking platform