Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Database open but inactive
Message
 
 
To
11/11/2009 23:16:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01434319
Message ID:
01434321
Views:
110
This message has been marked as the solution to the initial question of the thread.
>I know. I know. Obsolete 'select' but here they are rearing their messy faces.
>question 1
>Is there a command i can use to find out if a database is open - not necessarily active at the moment of enquiry, but previously open.

?dbused('myDatabase')

>Question 2
>Can i close ONE selected database or is it all or nothing.?
>
>see ?? below.
>
>select 1
>use data1
>select 2
>use data2
>select 3
>use data3
>
>select 1
>?? is data4 already open
>?? if open - close data4
>
>
>thanks for your help
>
use in select('Data4') && closes only data4 table

Database is opened with
OPEN DATABASE myDatabase command

Table is opened with USE command (closed with use as well).
>k
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform