Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid looses ControlSource
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00559169
Message ID:
00559177
Views:
17
I am already resetting the Datasession (just like you said) and the table in the private datasession is not being closed/altered or anything so I don't see why the form (that should only be looking at the Private datasession) should loose its link to the table (which never moves). All that is happening is that the current datasession is being changed!

>Hi!
>
>Do you restore data session back after checking? In other words, does your code looks like following:
>
>nOldDataSession = SET("DATASESSION")
>... do something in the default data session
>SET DATASESSION TO (nOldDataSession)
>
>Wneh above do not help, then re-open the tabel in private data session.
>
>When grid cannot reach its record source, it is reconstruted (see VFP Grids article in the August issue of UT Magazine).
>
>HTH.
>
>>Hi can anyone explain this:-
>>
>>I have a form with a grid on it, this has a ControlSourceType of 1 and a ControlSource of a table in the forms Private datasession.
>>
>>Everything was going fine until I added some code that does a check on a table in the Default datasession.
>>
>>Basically at the point that I change datasessions the grids ControlSource is emptied.
>>
>>Thanks in anticipation.
Caroline
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform