Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TableUpdate() Problem
Message
From
16/10/1998 08:31:27
 
 
To
16/10/1998 07:32:57
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00147398
Message ID:
00147433
Views:
38
>>>>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
>
>
>Ok, just wondered.
>Do you call a form's method which updates the table from the toolbar, or do you try TableUpdate() right there? If you do as I suspect, directly on toolbar, try a method in your form, I do it that way and it works.

I have found a solution : _Screen.ActiveForm.ActiveControl.SetFocus() at the beggining of button code... It works ! Anyway, I am going to use you idea to put the method in the form, it's more elegant coding...

Other question : I have downloaded you MidGrid '98 on your home page but I can't manage to make it work... It always tells me that the file licence.mem is not present or corrupted and I have verified : It's here in my directory ???

Thanks for all !

Gilles
Gilles Azria
-------------------------------------------------
http://www.profiledatabase.com
http://www.photoprofile.ch
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform