>Can anyone tell me how to refresh the buffers in VFP 5.0 so the changes made on another form we be reflected on this form.
>
>For example, I run form A, while leaving form A running I run form B. Form A and B are showing some of the same data. I make changes to the data on form B. When I leave form B it automatically returns to form A. How do I refresh form A so that it shows the changes that were made on form B?
>
>TIA,
>GeneS
There are a couple of ways to do this. Simplest is just to REQUERY() your view in the Activate event of form A. If you are using tables, then a form.refresh() in the activate will do the trick.
Another way is, if Form a calls form B, then make form B modal and do your refreshing or requerying right after the call to the form.
DO FORM myModalForm
THISFORM.Refresh
Still another is simply to call form A refresh from form B
A fourth (and possibly most flexible) method would involve some sort of form messaging framwork in which an intermediate messaging object holds references to all open forms and has the ability to broadcast a refresh order to any or all forms.
Erik Moore
Clientelligence