Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to reference a tablename that is set to a property
Message
De
03/07/2002 09:36:57
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
03/07/2002 09:34:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00674912
Message ID:
00674914
Vues:
16
>Hello, I have a class in a prg. One of the properties I set is a tablename that can be several differnt tablenames with the same field structure. In a procdure I want to reference a field within the table which was set to the property. I am having trouble being able to refernce it.
>
>Any help here would be appreciated.
>
>James

Use an alias:
use MyTableJan2002 alias MyTable
Then, you can access by the alias:
.ControlSource = "MyTable.Field1"
HTH, Hilmar.
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