Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh Data
Message
 
 
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:
01431636
Views:
62
>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...

It depends on what exactly you're using to display information in form 1. If you're using a local view, you would need to issue requery. If CursorAdapter, then CursorRefresh, if buffered table, then refresh.

From form 2 you would need to send a flag to refresh data. There are multiple ways to achieve this functionality. One of them would be passing a form reference to Form1, e.g.

do Form2 with thisform

---------------------------
Form2 Init

lparameters toCallingForm
thisform.oCallingForm = toCallingForm && Save the reference

---------------------
This way you have a reference to your form1 in form2 and can set any flags or even call some methods of form1 from form2 when you saved the changes.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform