Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid looses ControlSource
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00559169
Message ID:
00559177
Vues:
16
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform