General information
Category:
Coding, syntax & commands
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only