Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can cursors be passed from Form A to B?
Message
De
27/11/2011 00:33:21
 
 
À
26/11/2011 20:10:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01529824
Message ID:
01529869
Vues:
65
>What I want to achieve is this:
>
>Say an invoice form needs to call a lookup form of items. When item lookup form comes up, it allows users to select several item records. I would like for the selected item records be passed back to the invoice form in the form of a cursor.
>
>Currently, my lookup form class only allows a single selection, which I dump into the calling form as a data object (SCATTER MEMVAR NAME oCallingForm.Returndata )

Then why dont you create a subclass of that lookup form
which creates the cursor in the data session of the calling form ?
Should be fastest - the code Naomi pointed you to does not look to be performant
except for specially set up situations and circumstances.
A SQL-KISS approach is likely to be better for your setup.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform