Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to use dbf
Message
From
28/07/2005 19:14:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01036681
Message ID:
01036801
Views:
10
>Which is a best way to use the table. Aviod message Alies is already use
>thanks

You should use private datasessions in most of your forms. Thus, a table opened in one form won't (usually) interfere with another form.

If you want to use a table very briefly, you can let VFP assign the alias:
select 0
use MyTable again && VFP will assign some alias
...
use
Or, you can assign it a specific alias for a specific purpose; here, you may also want to check whether it is already opened:
if not used("client_lookup")
  use client again in 0 alias client_lookup order ClientId
endif
select client_lookup
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
Next
Reply
Map
View

Click here to load this message in the networking platform