Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sharing Data Between Data Sessions
Message
De
06/03/2003 13:42:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
06/03/2003 13:17:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00762308
Message ID:
00762334
Vues:
8
>I have an application that extracts data from an outside source and stores this in various cursors.
>
>These details are extracted using routines provided by a third party software provider so it is not possiblt to extract using an sqlselect. The data will not be updated but will be used for reference purposes only.
>
>Because it could take 15-20 seconds to extract all this data I have decided that I would like this to happen when the user first signs on to my application and that the data will then remain available for the duration of the session.
>
>At present, these cursors are created in the 'main' program that starts the application and this program then runs the menu. The problem is that the forms called from the menu use private data sessions and I cannot get them to see these cursors that are sitting in their own different datasession.
>
>Is there a way of doing this other than having my forms use the default data session?
>
>Thanks
>
>Sue

Instead of a cursor, you might save the information to a table. To avoid conflicts in a network environment, give each table a unique name.

Perhaps you can also pass the table on which the cursor is based, as a parameter from one for to the other (or save it in some global variable).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform