Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ISEXCLUSIVE() Problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00171657
Message ID:
00171700
Views:
24
Hi Brad,

>If I try to pack the table I get the error message "File is open in another work area". Am I going about this the wrong way using the isexclusive() function? How can I tell when it's safe to pack the table?

Even if you open a table exclusive you can open it several times in the same datasession on the same computer. Instead you could loop through all open tables (AUSED tells you about them) and compare the table name and path with the one you want to pack. In the case of the SELECT statement you could also add a NOFILTER clause to it which would force VFP to create a new phyiscal cursor that is indpendant from the original table.

Christof
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform