Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close all, Except...
Message
From
01/01/2007 10:58:01
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
01/01/2007 07:59:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01181173
Message ID:
01181200
Views:
26
>Hi
>
>I m not looking for a way to see the cursors/tables.
>
>I dont want to open tables again and again, For example if I have a queries form with 'preview' command buttun, the query run on the opend tables and in the procedure I created cursors, now the user want to run the query again on other ids range, I have to close all the cursors procedure but I don't want to close the tables and I dont want to close the other opend cursor (example, I have a cursor for list box).
>
>This example show you the problem principle.
>
>I dont want to open the tables every form, I fust use with set order to my indexes and to close only the temp cursors (exept my tables and some cursors).

Actually, Hilmar's suggestion was right on the spot. I once had a situation like that (though I regularly use private datasessions), and the trick out of it was to get the aused() array twice: when starting and on exit. So if you have a process of any sort that creates its own cursors, and you want only those closed - use aused() before the process, and again after the process. Then go through the second array, and if any alias listed in it is not in the first array, close it. If it is in the first array, it was open before the process, so skip that one.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform