Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem in Using USED()
Message
From
15/10/2001 16:55:35
 
 
To
15/10/2001 16:50:19
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00568793
Message ID:
00568797
Views:
23
>Hi,
>I am facing below problem in Visual Foxpro. Here is the problem & little code.

>SELECT 0
>USE Employee ALIAS Empl && ( This file is opened in someother Function)
>* When control comes back, I am trying to open once again.
>SELECT 0
>USE Employee

>IT SAYS 'FILE IS IN USE'. So now how do I know that file is already opened. >Now suppose I will make use of USED() function.

>IF USED('EMPLOYEE') - IT SAYS NO. Because it checks with ALIAS not table name.

>Ofcourse I have solution for this using AUSED() function. Get an array and >find out each Alias's table name using DBF().

>BUT MY QUESTION IS, IS THERE ANY FUNCTION WHICH CHECKS WITH TABLE NAME INSTEAD >OF ALIAS ?

Not that I know....
I believe if you issue a "again" clause you can open a table multiple times.
Work as if you don't need money
Love as if you've never been hurt before
Live as if this is your last day to live
Dance as if no one's watching
Previous
Reply
Map
View

Click here to load this message in the networking platform