Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing a private data session from another form
Message
From
23/06/1999 09:54:46
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
23/06/1999 07:43:53
Kenneth Downs
Secure Data Software, Inc.
New York, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00232540
Message ID:
00232962
Views:
19
>>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform