Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stepping through field names myfield1, myfield2, myfield
Message
From
01/03/2000 13:22:22
 
 
To
01/03/2000 10:30:17
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00339788
Message ID:
00339947
Views:
15
>I have a db table that has a series of fields like this....
>I have a command that needs to be run on each field in the table...

You can use Fields() to walk throught the field naems, or afields().

But I would have the command button set its own caption in its init or something:

This.Caption = iif(seek(upper(This.Name), 'CaptionTable', 'object'), CaptionTable.Caption, This.Caption)

This means you'd have table that looks like:
Object    Caption
-------------------
Button1   Button1Caption
Button2   Add
ect.
Is this possible for you?
Previous
Reply
Map
View

Click here to load this message in the networking platform