Hello,
FindViewByTag function is work perfectly but i need get view type also.
I have scrollview with different view types (spinner, edittext , button) and they are all created by user dynamic at runtime
Problem is :
[CODE ]
for
edt= FindViewByTag(scvform, "A" & i)
next
[/CODE ]
it doesn't work because edt can be ( spinner , button or edit ) with number i in loop
Need help
[CODE ]
Sub FindViewByTag(Parent As Panel, Name As String) As View
For Each v As View In Parent.GetAllViewsRecursive
If Name = v.Tag Then Return v
Next
Log("View not found: " & Name)
ReturnNull
End Sub
[/CODE ]
FindViewByTag function is work perfectly but i need get view type also.
I have scrollview with different view types (spinner, edittext , button) and they are all created by user dynamic at runtime
Problem is :
[CODE ]
for
edt= FindViewByTag(scvform, "A" & i)
next
[/CODE ]
it doesn't work because edt can be ( spinner , button or edit ) with number i in loop
Need help
[CODE ]
Sub FindViewByTag(Parent As Panel, Name As String) As View
For Each v As View In Parent.GetAllViewsRecursive
If Name = v.Tag Then Return v
Next
Log("View not found: " & Name)
ReturnNull
End Sub
[/CODE ]
Last edited: