i have this defined in Sub Globals
this array is also defined
i have a click event like this
it works for lblC15-lblC25 which i have had working from before....i just added in lblCD, lblCT and lblC3...and the new 3 are NOT working...not sure what i missed any thoughts?
if i define them manually like this it does work as intended....just not sure why not working from the defined array and click event above?
any thoughts would be great...thanks
B4X:
Dim lblCBtn() As Label
Dim lblC15, lblC16, lblC17, lblC18, lblC19, lblC20, lblC25, lblCD, lblCT, lblC3 As Label
this array is also defined
B4X:
lblCBtn = Array As Label(lblC20, lblC19, lblC18, lblC17, lblC16, lblC15, lblCBull, lblCD, lblCT, lblC3)
i have a click event like this
B4X:
Sub lblC_click()
Dim lC As Label
lC=Sender
Dim vCur As Int
vCur = lC.Tag -1
arrCurrent(vCur) = arrCurrent(vCur) + 1
lblMrk(vCur).Text = arrCurrent(vCur)
End Sub
it works for lblC15-lblC25 which i have had working from before....i just added in lblCD, lblCT and lblC3...and the new 3 are NOT working...not sure what i missed any thoughts?
if i define them manually like this it does work as intended....just not sure why not working from the defined array and click event above?
B4X:
Sub lblCD_Click
Dim vCur As Int
vCur = lblCD.Tag -1
arrCurrent(vCur) = arrCurrent(vCur) + 1
lblMrk(vCur).Text = arrCurrent(vCur)
End Sub
any thoughts would be great...thanks
Last edited: