Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sharing Tables across Forms
Message
From
10/08/2006 00:04:54
 
 
To
09/08/2006 19:39:16
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01144322
Message ID:
01144415
Views:
12
>I use a technique I call conditionally private data sessions. If a form (lineitems) is summoned from a parent form (invoice) the child form adopts the datasession of the parent form, conditionally opens and leaves open the line items cursor and saving is handled by the parent's datasession.
>
>Lookup forms are not children in that sense. They save data to their tables.

This is not a child form -- it is the exact same form being called multiple times. Each time the user (in this case a VFP developer) would open a different file. The form is a menu editor -- you may want to have multiple menus open and copy-paste between them which is a reasonable request. The cursors are the same alias names; hence, a private datasession is required. So how to share between forms with private datasessions?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform