dim EdiText01 as EditText
dim EdiText02 as EditText
dim EdiText03 as EditText
dim EdiText04 as EditText
' etc...
EdiText01.text = " text1"
EdiText02.text = " text2"
EdiText03.text = " text3"
EdiText04.text = " text4"
Create a sub in the Activity Module that will do the updates. Then when running your service use CallSub with update data and your texts will be updated.
Create a sub in the Activity Module that will do the updates. Then when running your service use CallSub with update data and your texts will be updated.
Sub CallSubX (Component As Object,SubName As String,Params() As Object) Dim no As NativeObject=Component Dim name As String=SubName Dim ll As List ll.Initialize2(Params) For i =0 To Params.Length-1 name=name & ":" Next...
Sub CallSubX (Component As Object,SubName As String,Params() As Object) Dim no As NativeObject=Component Dim name As String=SubName Dim ll As List ll.Initialize2(Params) For i =0 To Params.Length-1 name=name & ":" Next...
Well, you can have an array of view (edittext) in your main module, and you can pass an array of values from you sub, as explained.
Then, in you main sub, go through the array of edittext assigning the same position of the array of values
Well, you can have an array of view (edittext) in your main module, and you can pass an array of values from you sub, as explained.
Then, in you main sub, go through the array of edittext assigning the same position of the array of values
You have a problem as you can't refer to a view by name in this situation.
If you are willing to use the edittext/ label tags then you could try the attached, modified from Jose's example. It's not very elegant and could be slow dependant on the number of views you have!
You have a problem as you can't refer to a view by name in this situation.
If you are willing to use the edittext/ label tags then you could try the attached, modified from Jose's example. It's not very elegant and could be slow dependant on the number of views you have!
Baffled as to what you are looking for then!!
I thought you wanted to be able to set the text on an individual edittext/ label?
What is it you want to do?
Baffled as to what you are looking for then!!
I thought you wanted to be able to set the text on an individual edittext/ label?
What is it you want to do?
this :
callsub3(main,"UpdateEditText","EditText01","Newtext")
where
EditText01 is the object name in Main activity : for example : EdiText01
Newtext is the new text
I know that i can pass a tag or flag to a sub, but i want know is there is a way to pass editetext name as object, i can add any new edittext to main without add new tag. or id.