Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open database
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00511922
Message ID:
00512327
Views:
12
Thanks for the tip, Vlad. It is somewhat unnerving though to see more than one dbc with the same name open. Before opening another dbc I'll scan through the array created with adatabases() and close any open dbc's with the same name that I want to open, then I'm certain I'm working with the one I want.

Randy

Example:
local array laDbc[1]
local lnPos
store 0 to laDbc,lnPos
if adatabases(laDbc)>0
do while .t.
lnPos=ascan(laDbc,'CSA')
if lnPos>0
set database to csa
close data
=adel(laDbc,asubscript(laDbc,lnPos,1))
else
exit
endif
enddo
endif
Previous
Reply
Map
View

Click here to load this message in the networking platform