Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
USE IN to close free tables???
Message
From
18/11/1999 11:16:48
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00290654
Message ID:
00292492
Views:
15
Please not this will cause an error if Members is currently not in use, so it should be.

if used( "Members" )
use in Members
endif

Guess what, this can be abbrieviated to:

use in select( "Members" )

Select() will return the workarea that the specified alias is currently used in. If it isn't open, the it will return 0, which will produce an error free and harmless 'use in 0'.


>Will the following work to close a table...
>
>USE IN Members
>
>... just the same as...
>
>SELECT Members
>USE
>
>TIA, CH.
Previous
Reply
Map
View

Click here to load this message in the networking platform