Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alter Table
Message
From
13/03/2004 19:00:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00886023
Message ID:
00886028
Views:
13
You can close it with:
USE IN MyTable
Alternately, you can check whether it is already open before you open it:
if not used("MyTable")
  use MyTable...
endif
You might also re-open the table with another alias:
use MyTable again alias MyTable_Purpose
replacing "Purpose" with some relevant description.

The fact that some SQL commands keep tables open can be a hassle; pressumably, VFP does this on purpose, for speed.

>AFter using Alter Table such as
> alter Table myTable rename Column Col1 to Col2
>I notice that if try to use the table
> use myTable
>I can get an error message such as
> myTable is already open
>
>The same can happen after using a select statment such as
> Sele * from table1, table2 into table table3 ....
>
>Is there a way other than close data and/or close all to deal with this
>problem?
>
>Thanks
>Steve Elster
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform