Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TableUpdate() Problem
Message
From
21/10/1998 07:01:08
 
 
To
16/10/1998 07:18:44
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00147398
Message ID:
00148808
Views:
32
>>>Hi !
>>>The question was perhaps allready answered but I have a strange problem :
>>>
>>>1. I had a form with text fields with buttons on the form to Edit, Save or Restore With TableUpdate() or TableRevert(). I could edit a record, change something in one field and when I click Save --> It was saved...
>>>
>>>2. Now I've done a toolbar instead of buttons of the form. But If I edit and don't go to the next field, nothing is updated with the Save button !!! If I go to the next field with TAB or Enter the field is updated when I Click Save on the toolbar...
>>>
>>>It seem that there is no valid or LostFocus Event since I have put a Toolbar !!
>>>
>>>Thanks for your help and sorry for my bad english !
>>>
>>>Gilles
>>
>>Hello, Gilles
>>
>>Is there any code in Valid/LostFocus that you're depending on? ControlSource on your fields is a table/view field?
>> Your english is just fine. :-)
>
>I have no code in Valid and LostFocus and my Controlsource is a table field....
>
>Gilles

Look up the Tastrade Sample application - in the baseform there is a writefield (or something named similiar) method which discusses this issue. Basically untill the focus shifts from the control the data is not written to the underlying database, on clicking the toolbar the focus dosen't shift from the control. The solution to this is, that before doing a save to ensure that the data for the control is written using REPLACE. The Tastrade applications method is quite generic and can be incorporated in your app with no modifications
Previous
Reply
Map
View

Click here to load this message in the networking platform