Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Small problem
Message
De
06/01/2006 20:45:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
06/01/2006 19:39:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01084238
Message ID:
01084329
Vues:
9
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform