Views don't really have a name in Basic4android.
You can just write:
B4X:
For i = 1 to 10
Dim et As EditText
et.Initialize("et") 'All views will share the same event Sub.
et.Tag = i 'Useful later to distinguish between the views
Activity.AddView(et, ...)
Next
Thanks Erel..Just what I was looking for...
One re,aining questions, in your example, all views share the same event, wich is fine, but if all the views of one kind have the same name, how can I go trhought then to get a particullar prop, like if in the example, if all were EditText views, how houl I gather the diferent Text values and then use them?
The same aproach using a For Next loop woyuld be great, but I can figure out to go through the views...
I like you Idea, wich leads me to a similar with proven results..I will be adding eache New "et" to an array of views...This way I can ensure the views "Type" is unchangeable, and useable..
Thanks forthe Ideas..
One re,aining questions, in your example, all views share the same event, wich is fine, but if all the views of one kind have the same name, how can I go trhought then to get a particullar prop, like if in the example, if all were EditText views, how houl I gather the diferent Text values and then use them?
The same aproach using a For Next loop woyuld be great, but I can figure out to go through the views...