Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question about evaluating expression 1

Status
Not open for further replies.

iostream71

Programmer
Joined
Mar 13, 2002
Messages
229
Location
US
i'm trying to set up a loop that handles this:

for (X = 0; X<10;X++){
_level0.buttonX.someValue = 10;
}

how can i execute that expression in the loop?
 
try

_level0[&quot;button&quot; + X].someValue = 10;
 
awesome, that worked. thanks a bunch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top