Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IF ! used('myfile') doesn't work
Message
 
To
13/02/2007 14:50:32
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01195320
Message ID:
01195323
Views:
14
>When working in forms, I use:
> If Not Used('myfile')
> USE path + myfile
> ENDIF
>
>Even if the file IS in use, Fox 7 still tries to execute the USE. Result: error.
>
>Anyone know why?
>
>Thanks, Randy

USED() (I think, because this is not in HELP file) checks if the file is USED() in current data session. If you are used that file in some other DS and you have EXCLUSIVE use of that file you will get the error. Also if you are used the file somewhere else but with different ALIAS and again this file is EXCLUSIVE use, you also will get the error.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform