Counter for variables

BlitzPlus Forums/BlitzPlus Programming/Counter for variables

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

dim button(9)
dim label(9)

for t=0 to 9
  button(t)=CreateButton("Text"+(t+1),10*t,10,40,20,window)
  label(t)=CreateButton("Text"+(t+1),10*t,69,20,20,window)
next

Note that it's usually the most 'clean' to use 0-based loops.