Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to reference a tablename that is set to a property
Message
From
03/07/2002 09:36:57
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
03/07/2002 09:34:41
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00674912
Message ID:
00674914
Views:
17
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform