Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem in Using USED()
Message
 
 
To
17/10/2001 08:34:34
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00568793
Message ID:
00569518
Views:
30
>Hi,
> Don't you think it is a Bug in Foxpro? Because we cannot use USED() properly.
>
>Thanks,

No, it's not a BUG. It's how this function works. You can not just change function's behavior, if it doesn't suit your current needs. However, you may add a wish in Toledo list about something like DBFUSED(), which would tell you, if the particular DBF used anywhere. Also note, that USED() function works in current datasession. This new function may check for the table used in any datasession and may accept three parameters:
DBFUSED("c:\temp\mytable","MyAlias",.f.)

First parameter is required and would tell, which dbf to check. The second optional would tell, which alias we have to check, and the last one would tell, do we want to check all datasessions (default .t.) or only current DS (.f.)

This is just an idea...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform