Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highest USED workarea
Message
From
07/08/1999 03:44:53
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
06/08/1999 17:20:46
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00250374
Message ID:
00251026
Views:
26
>James-
>
>If you really need to get at the already open table, you could have a open table registry in your application object where tables are registered as opened when they are opened. But, AUSED is very much the way I would do what you are talking about.
>
>I can think of one contingency you might want to consider: if you are using views, the base tables for views will also be in the AUSED array. Whether that affects your design or not, I don't know.
>
>>So I can search for a table that might be already open under another alias. If there is a quicker way to do this besides looping through all the used workareas, I would certainly like to know it.

Another matter - AUsed() should, AFAIK, give the tables used in the current datasession. Now, let's take this a bit further: how do we determine the highest DataSessionID across all the DataEnvironment objects or Session objects, or just forms with private datasessions without DEs?

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