Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
At what time the property DataSessionID is set?
Message
De
12/06/2001 14:24:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00518513
Message ID:
00518518
Vues:
8
>I am using a form with private datasession.
>The form do not have any tables open. In the Load Event I open the tables.
>
>In the Init() of the form I want to use the table but the DataSessionID is set to 1.
>
>If I suspend the excution in the init() I can see the DataSession # 4 created for my form but the DataSessionID is not set to 4.
>
>Any one know when the DataSession is set to my privated datasession?

There are two different properties: DataSession and DataSessionId. The two are related.

When you set DataSession = 2, the form uses a private DataSession.

DataSessionId is only set at runtime: each form is assigned a unique DataSessionId.

You can "link" from one form to another by sharing the DataSessionId, but I understand this should usually be avoided.

Regards, Hilmar.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform