intrepid101
Programmer
If I set up my Constants as
Const status1 = "Under Construction"
Const status2 = "Active (Recruiting)"
Const status3 = "Active (Closed)"
Const status4 = "In-Active"
Const status5 = "DisBanned"
Can I then loop through them to add to a combobox
For idx = 1 To 5
cmbStatus.AddItem (Status & idx)
'^ Obviously does not work says 'status' not defined
Loop
or do I need to use the direct method:
cmbStatus.AddItem "Under Construction"
cmbStatus.AddItem "Active (Recruiting)"
cmbStatus.AddItem "Active (Closed)"
cmbStatus.AddItem "In-Active"
cmbStatus.AddItem "Disbanned"
Const status1 = "Under Construction"
Const status2 = "Active (Recruiting)"
Const status3 = "Active (Closed)"
Const status4 = "In-Active"
Const status5 = "DisBanned"
Can I then loop through them to add to a combobox
For idx = 1 To 5
cmbStatus.AddItem (Status & idx)
'^ Obviously does not work says 'status' not defined
Loop
or do I need to use the direct method:
cmbStatus.AddItem "Under Construction"
cmbStatus.AddItem "Active (Recruiting)"
cmbStatus.AddItem "Active (Closed)"
cmbStatus.AddItem "In-Active"
cmbStatus.AddItem "Disbanned"