Thanks Erel, unfortunately that doesn't work as I tried that at the start.
I'll try and explain a little more for context, basically I'm creating a generic view class which might render a label view, edit text view etc etc, so at runtime I don't know exactly what the views will be, but create them from a class.
The core method in the class is (I've removed other code that isn't relevant):
Sub Class_Globals
Dim edt_input As EditText
End Sub
Sub RenderInput As View
Select InputType
Case "text"
' cast as text
edt_input.Initialize("edt_input")
edt_input.Tag="field"
edt_input.Text="default"
Return edt_input
End Select
End Sub
Sub edt_input_TextChanged (Old As String, New As String)
Log("old and new : "&Old&" / "&New& "/"&edt_input.Text)
End Sub
For this code, everything works great, except that the EditView always contains 2 overlaying label - the new one I'm editing, and the original 'default' value that I set it up with initially.
I've tried a few different approaches, re-initialising the view, changing the sender text, changing the edt_input.Text value etc, all of these case the app to crash.
Any ideas? As I say works fine if its added in from the designer but can't do that as I need a dynamic layout.
Thanks