Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Including Tables into the Project
Message
From
17/06/1997 18:17:03
Renato De Giovanni
Via Fractal Information Systems
São Paulo, Brazil
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00036447
Message ID:
00036709
Views:
53
>>Why should I issue AGAIN ALIAS if USED() returns .F.?
>>
>>Doesn't it looks like a bug?
>
>Renato,
>
>It doesn't look like a bug to me. I always use the again keyword becuase USED() checks for the ALIAS naming being in use not whether the DBF is open with some other alias name.

That's right, Jim.

> USE Customer ALIAS Cust
> IF USED("Customer") && returns .F. but customer.dbf is open

Now suppose you are within a Private DataSession and you know "Customer" dbf is not opened there (In other words, there are no alias names related to that table). Then, shouldn't you faithfully and happily issue: USE customer ?

Well it returns me a "File is in USE" when it's not really in use at that specific DataSession (just remembering that it only happens when the table is not available in the Data directory; it's included into the Project).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform