If I use:
Dim tagtest As Int = pnlAdd.GetView(i).tag
if tagtest=j then...
throws a Java.lang.NumberFormatException on the first view it iterates if I do it that way.
If I do it the way I showed earlier, it seems to work OK.
Also: it seems to think a Label and and Editbox are the same ie:
If pnlAdd.GetView(i) Is Label Then
pnlAdd.GetView(i).Visible= True
Dim b As Label
b= pnlAdd.GetView(i)
b.Text=labels.GetvalueAt(j-1)
Else If pnlAdd.GetView(i) Is EditText Then
pnlAdd.GetView(i).Visible = True
End If
Puts the value in both the label and the editbox that are tagged at j-1.
I think I read that they both are inherited from the same java object in the back end, so I can see this happening. Any way of differentiating them other than parsing more data out of the tag?