View Single Post
Old 05-15-2010, 11:32 PM   PM User | #2
gizmo1650
Regular Coder

 
Join Date: Apr 2010
Posts: 163
Thanks: 3
Thanked 25 Times in 25 Posts
gizmo1650 is on a distinguished road
id doesn't refer to an attribute, it is a integer that tells the program where in the array to store tabLink.
Code:
id=0;
tabLink[id]="test"//these two lines have the same effect as tabLink[0]="test"
id=1
tabLink[id]="foo"//these two lines are the same as tabLink[1]="foo"
after running these four lines tablink now is ["test", "foo"]
the id value tells it were to store "tabLink" in the array
gizmo1650 is offline   Reply With Quote