Dim score = 0
Dim labels(12)
Dim lbs() As Label = {Label1, Label2, Label3, Label4, Label5, Label6, Label7, Label8, Label9, Label10, Label11, Label12, Label15}
For i = 0 To 12
labels(i) = lbs(i).Text
Next
Hi
I have a group of labels for which i need to get the text and sum them how to i convert them to a number. I have tried convert. and cint but had no luck can anyone help please.
For i = 0 To 12
score += CType(labels(i), Integer)
Next
Label13.Text = score
End Sub