Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh Data
Message
From
27/10/2009 07:38:22
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
27/10/2009 06:28:53
Paul Ong
Knights of Christ Foundation
California, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01431629
Message ID:
01431635
Views:
81
I hope I understood your problem correctly.

Any changes you do on Form1 must be saved before they are visible in Form2. If you use buffering, do a TableUpdate() in Form1 - and check the return value. Although, I am not sure how this would work with FormSets - I don't like those, and never use them. But I suppose that, just like forms that are completely separate, they would read the data from disk, and if those data aren't saved, they won't be available. When saving data, be sure to check the return value.
if TableUpdate()
  * Data was saved successfully
else
  * Show error message. Get information with aerror(), about the last error;
  * error number is in the first element of the array, error message in second element.
endif
On Form2, assuming you are accessing the same records as in Form1, you have to refresh(), to get the latest data.
ThisForm.Refresh()
>Hi,
>
>I do have a problem here, this is my scenario,
>
>I have 2 forms, say I have the display of list of employees in form 1 and then on form 2 I will make changes on the same dataset displayed on form 1. so when i load form 2, it is just on top of form 1 when i close form 2 i want to display the changes i have applied. is there a way other than reloading the form from the very start i opened form 2?
>
>Please give me insights and possible solutions for this, this i think i miss though possible with formset, its not like vb where i'm in form 2 i can call a form1.property? or i am just too young in programming hehehe....
>
>thanks...
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform