Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
USED() function returns .F. but table is open?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00861974
Message ID:
00861978
Views:
27
>>This is probably a fairly basic level question, but here goes...
>>Occasionally I will encounter a situation where the Used() function will return .f. for a table/cursor being in use, but attemting to then use the tested table fails with a "file is in use" error. The problem is intermittent.
>>What would cause this to occur?
>>TIA,
>>Margaret
>
>Are you testing for Used() in code called from a Form with a Private DataSession, this will cause Used() to return .F. if the table is open in a different data session.

No forms (all in straight code) but there could be a datasession involved. I will pursue the problem with that understanding.

Thanks!
Margaret
Margaret Duddy
mmd@outformations.com
Previous
Reply
Map
View

Click here to load this message in the networking platform