d0n Posted August 17, 2009 Share Posted August 17, 2009 i have something like this i want to be able to name $BossMod_Checkbox1, $BossMod_Checkbox2, $BossMod_Checkbox3 and so on in the loop, how do i do it? For $a = 1 to $Skill[0][0] $BossMod_Checkbox = GUICtrlCreateCheckbox($Skill[$a][0], 230, 70+$a*20) Next thanks for help Link to comment Share on other sites More sharing options...
qazwsx Posted August 17, 2009 Share Posted August 17, 2009 Use an array? Link to comment Share on other sites More sharing options...
Genos Posted August 17, 2009 Share Posted August 17, 2009 Yes, making $BossMod_Checkbox into an array should accomplish what you're wanting. Link to comment Share on other sites More sharing options...
d0n Posted August 17, 2009 Author Share Posted August 17, 2009 (edited) so inside the array have the variables named already? what if i dont know how many i need to name? EDIT: nvm i got it to work thx Edited August 17, 2009 by d0n Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now