Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forms' DataSessionID changes
Message
De
17/07/2003 14:58:44
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Forms' DataSessionID changes
Divers
Thread ID:
00811222
Message ID:
00811222
Vues:
38
I have created a function in a prg file that instanciates a session object with a private data session. Then it records the current cursor and DataSession, then changes to the session objects data session, loads a cursor, make changes, save changes, restores the original datasession and cursor, and returns a value.

This function is called from a form. I check the forms DataSessionID before the function is called, call the function, and then check the forms DataSessionID after the function. The ID's are different. For example, before the function is called, the ID will be 3, after the function, the ID will be 4. When I step through the code, the DataSession and Cursor are correctly restored by the function, I know because I can see the correct cursor alias and records in the VFP status bar. But when the code returns to the line following the function call, the datasession is mysteriously changed and the cursor is no longer available. The variable receiving the functions value is holding the correct value.

Does anyone have any ideas how a forms DataSessionID could change like this? Any help would be greatly appreciated!

Regards,

Don
Répondre
Fil
Voir

Click here to load this message in the networking platform