>>>>
Hello, I have 2 VFP9 modeless forms with private data sessions. Both forms
share several data files. If I make a change in one form, how can I get the
other form to recognize  the updated data ?  Thanks, Kent
<<<<

Hi Kent,

That is a "Classic" problem solved by many, many of the VFP Frameworks, like
www.promatrix.com with Visual ProMatrix. They often use the concept of an
application "object" that is at all times available.

Within the application object, lists, names, arrays, etc... are kept
available and dynamically updated with a reference to every open form in the
application, providing an easy object reference to the form.

That is the long answer,,,

The short answer is you could do a simplified version of the same by
interrogating all of the active forms in your application by referencing 

_screen.activeform

Or

Looping through all of the _screen.objects and referencing them by element -
looking for your particular object/form and getting a reference to that
forms object ...

It's so much easier to have/use a Framework - believe me.

Cheers

John C. Gunvaldson
www.fox-net.com






_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to