Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Small problem
Message
From
06/01/2006 20:45:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
06/01/2006 19:39:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01084238
Message ID:
01084329
Views:
8
>The table name is different for different users. This is a stand alone app that has many users who may have several incidents to work on. Each incident has a table. Each table will have a unique incident name.

This still doesn't hinder you to use the same alias for different tables.

The RecordSource for the Grid, SELECT commands, and IN clauses, among others, all make reference to an alias, NOT to a table. The alias is very often the same as the table name, but you can assign any other alias.

For example:
* (get input from user)
* (store this input into variable lcTable)
* (and then:
use (lcTable) alias MyTable
...
select MyTable
replace ... in MyTable
Grid.RecordSource = "MyTable"
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