>We have a system that allows a user to import data into tables contained in a VFP database container from outside sources. It is possible for this source to be a table in another VFP database container. This additional container would be automatically opened by VFP when the table is opened for use.
>
>This brings up the following questions:
>
>How can we tell when an additional container has been opened?
>How can we determine which container is active?
>How can we switch between containers?
>How can we find out how many containers are open and what their names are?
>
>TIA
Use DataEnvironment with toggled Cursor.Database properties.
See Help: ADATABASES(),DBC(),SET DATABASE, Database property
Edward Pikman
Independent Consultant