Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enumerating Data Sessions?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00660418
Message ID:
00660428
Views:
10
>I've found that when VFP6 errors out, it can leave datasessions and tables open. A CLOSE DATA will take care of any tables open in the CURRENT datasession, however, I wish to close ALL tables, regardless of what data session they are in.
>
>It's not quite as simple as this, however:
>
>For X = 1 to 255
> Set Datasession To X
> Close Data All
>EndFor
>
>Because VFP gives you a nice little error if the X datasession doesn't exist. Now of course I could simply trap for this error and ignore it, but that's not very elegant.
>
>So, does anyone have an elegant solution for this problem? I would have thought there would be some Array command like AFIELDS, AUSED, ADATABASES, but I cannot find one for data sessions.
>
>Thanks
Scott,

If your tables are part of a database then closing the database will close its tables.

HTH
Caroline
Previous
Reply
Map
View

Click here to load this message in the networking platform