Article ID: 131265
Article Last Modified on 2/15/2000
USE <cDatabase_name>!<cTable_name>NOTE: Do not put spaces on either side of the exclamation mark.
C:\MAIN C:\MAIN\ONE C:\MAIN\TWOThis can be done Visual FoxPro by issuing these commands:
CD C:\ MD MAIN CD C:\MAIN MD ONE MD TWO
CD C:\MAIN\ONE CREATE TABLE tb_mytbl (fld1 c(10)) CD C:\MAIN\TWO CREATE TABLE tb_mytbl (fld1 c(10)) USE CD C:\MAIN CREATE DATABASE db_one ADD TABLE C:\MAIN\ONE\tb_mytbl CREATE DATABASE db_two ADD TABLE C:\MAIN\ONE\tb_mytbl SET DATABASE TO db_oneThese commands set up a scenario where a database named db_one contains a table named tb_mytbl, which is located in the C:\MAIN\ONE directory. Another database named db_two contains a different table named tb_mytbl, which is located in the C:\MAIN\TWO directory.
USE tb_mytbl
It would open the table in db_one located in C:\MAIN\ONE.
USE db_two!tb_mytbl
Additional query words: VFoxWin !-symbol bang symbol
Keywords: KB131265