Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form with private datasession calls a .prg. What happens
Message
De
06/05/1998 02:50:40
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00097056
Message ID:
00097245
Vues:
26
>>When i call a .prg from a form which has a private datasession, the program opens another datasession for all the cursors or tables.
>>To solve this, i pass the datasession as a parameter and issue a 'set datasession to (parname). Is there another better solution to do this ???
>
>What we are doing is that we create a custom method in the form and put the program in it. The trouble with this approach is redundancy of coding especially if the program seems reusable, but it is safer and much easier to maintain.

Jess: Well, i do always, but if the code must be used by a lot of process in different forms. In this case perhaps the solution is to place code in n object public for all, but then the problem is the same: differents datasessions.

Thanks.
Saludos,
A.G.P.
---------
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform