G
Guest
I need to convert a form in vb6 with several named "lbcol1","lbcol2",...
"lbcol" and so onn array of label
the funtion that in vb6 was alright was:
Private Function GimmeLabel(Index As Integer, Nome As Integer) As VB.Label
Dim Obj As Object
For Each Obj In Me.Controls
If Obj.name = "lbcol" + CStr(Nome) Then
If Obj.Index = Index Then
Set DammiLabel = Obj
Exit For
End If
End If
Next
End Function
How to translate in vb.net
More in general isThere a function in vb.net equlvalent to the
java/actionscript function eval
Thanks best regards
Davide
"lbcol" and so onn array of label
the funtion that in vb6 was alright was:
Private Function GimmeLabel(Index As Integer, Nome As Integer) As VB.Label
Dim Obj As Object
For Each Obj In Me.Controls
If Obj.name = "lbcol" + CStr(Nome) Then
If Obj.Index = Index Then
Set DammiLabel = Obj
Exit For
End If
End If
Next
End Function
How to translate in vb.net
More in general isThere a function in vb.net equlvalent to the
java/actionscript function eval
Thanks best regards
Davide