I am having more troubles with arrays. It won't let me move text from one label to another. Here is my code for clicking the button:
My declarations:Code:For i = 0 to 9 If Slots(i) = true then backpack.slot(i + 1).caption = stats.lblweapon.caption'Slots go from 1 to 10, so i+1 is needed end if next i
And my Form_LoadCode:dim Slots(9) as string
Am I doing anything wrong?Code:for i = 0 to 9 if backpack.slot(i + 1).caption = "" then slots(i) = true 'The backpack slot is empty, so the boolen = true end if next i




Reply With Quote