using a variable within a object name

  • Thread starter Thread starter Luke Smith
  • Start date Start date
L

Luke Smith

I want to loop thru number (0 - 10) and assign values to a hyperlink
webcomponent which uses the number in the components id.

for (i=0;i<10;i++)
{
hl_[value of i].hyperlink = "hodhodhso";
}

any suggestions?
 
Luke Smith said:
I want to loop thru number (0 - 10) and assign values to a hyperlink
webcomponent which uses the number in the components id.

for (i=0;i<10;i++)
{
hl_[value of i].hyperlink = "hodhodhso";
}

any suggestions?

Yes - use an array. That's precisely what arrays are for.
 
Back
Top