Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET DATA SESSION lost cursor
Message
From
10/02/1997 15:37:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
SET DATA SESSION lost cursor
Miscellaneous
Thread ID:
00019939
Message ID:
00019939
Views:
91
In my report form object, I have a problem where a cursor disappear when I change data sessions.

Here's the main operations.

1. Do ThisForm.DataEnvironment.OpenTables()

2. In my form Init(), CREATE CURSOR TEMP ...

3. In my report button I save the current data session, switch to another and come back to the form data session:
lnDataSession=ThisForm.DataSessionId
SET DATASESSION TO 1
SET DATASESSION TO lnDataSession

4. Cursor TEMP is not available anymore.

Could it be that cursor TEMP is not part of the private data session of my form because I create it after my ThisForm.DataEnvironment.OpenTables()?

If I put the SET DATASESSION TO 1 in comments, I don't have any problem.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform