Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Field Name Metamorphosis
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00398268
Message ID:
00398271
Views:
14
This message has been marked as the solution to the initial question of the thread.
>Is it possible to access field names using a variable?
>
>i.e.
>
>the base field name is AAAA with 1 or 2 numbers after it.
>like ...
>
>for x = 1 to 5
> replace AAAA(x) with "Some Text"
>next x


Jeff,
Use name expression as follows
for x = 1 to 5
     replace ("AAAA" + TRANSFORM(x)) with "Some Text"
next x
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform