Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid losing recordsource and columns controlsource
Message
De
05/12/1999 13:21:12
 
 
À
05/12/1999 12:10:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00298872
Message ID:
00298920
Vues:
10
>>>>Hi,
>>>>
>>>>I have a form with no private datasession, with a grid from a cursor whem I change by code the datasession to n, I loose the grid recordsource and column controlsource???
>>>>
>>>>How to prevent this?
>>>>
>>>>Thanks,
>>>
>>>You would have to restore datasession and restore Grid.Recordsource and Column.Controlsources programmatically. It would be even better if you find a way when you do not need to switch datasessions.
>>
>>Yes that's what I do, But I touhgt there would be another way, I need to switch between datasessions, Thanks Edward.
>
>Ok, Pablo. If Mr. Petersen will jump into this thread, take it easy.

Well, I did, but I'm not nearly as much fun to argue with as John. I think firing up a session object subclass to do the work, so that the form's datasession gets left alone, might well be a solution. If JVP jumps in, I'd expect him to have a better solution than yours ("reset the datasession and re-set-up the grid" - the traditional approach) or mine ("do everything in a Session object and leave the damned datasession of the form alone!" - admittedly a SWAG). John might have a practical alternative to these.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform