Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Toolbar, Skip and TextBox
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00503387
Message ID:
00503396
Views:
25
Hi John.

>> I've got a toolbar of which one piece of fuctionallity is to move to the next record, works fine except (here it comes) if the user edits text within a textbox, then press Next on toolbar without moving out of the textbox, two things happen,
1) the record in not updated
2) the information in the textbox is carried forward and displayed against the next record. <<

The ControlSource of a bound control does not get updated until its valid fires. Since toolbar buttons do not get focus, the valid of the active control on the frm never fires. In order to force this to happen, you could put a little code in the your tool bar button:
IF TYPE( '_Screen.ActiveForm.ActiveControl.Name' ) = 'C'
   _Screen.ActiveForm.ACtiveControl.SetFocus()
ENDIF
As far as the text box not displaying the info in the next record, are you refreshing the form after moving the record pointer?

Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform