Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing a private data session from another form
Message
De
23/06/1999 09:54:46
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
23/06/1999 07:43:53
Kenneth Downs
Secure Data Software, Inc.
New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00232540
Message ID:
00232962
Vues:
20
>>>James,
>>>
>>>ThisForm.DatasessionId = loFormA.DataSessionID
>>>
>>>or:
>>>
>>>SET DATASESSION TO (loFormA.DataSessionID)
>>
>>I've just discovered that if I do that, my form's grid loses RecordSource. Take care of that.
>
>That's because the recordsource no longer exists -- you are now in a different datasession. You want to set the datasession before the grid initializes, such as in the LOAD method.

I know, but it happens also when you call another form from your current form with NOSHOW, and set your datasession to the datasession of the called form - the grids in the calling form go south. One more thing to remember.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform