Vatchunter
Technical User
This is the first program I have ever written. I am writing this to open several tables that I work with on a daily basis. When I run the program table A is the only one visible until I click on the screen, table A disappears and then table B will open. if I click on the screen again both tables disappear. After running the program, if I type select A and Browse last in the command window, and likewise for table B, both tables open, the index and relationship have been set. How do I get the tables to stay open after the program runs?
This is the code for my program:
SELECT a
USE "c:\users\fox tables\example1.dbf" EXCLUSIVE
BROWSE last
SELECT b
USE "c:\users\fox tables\example2.dbf" EXCLUSIVE
BROWSE last
select b
INDEX on ABC TAG ABC
SELECT a
SET RELATION TO ABC INTO b
Thanks for your help!