As per title, what does xxyy.initialize actually do?
The reason I ask is that I'm getting a little confused (Maybe a note for the n00b questions post) when and when not to use .initialize. I get it in the end as the IDE reports errors if I forget them.
Now, the syntax is xxyy.initialize("event name") when referencing the control in code do you use the event name or the initial variable. Up to now I've kept the variable and event name the same so no issue, it's more of a curiousity than an problem. i.e with the following code:
Dim txtData as EditText
...
txtData.initialize("TextData")
...
Would you later reference it as txtData or TextData?
I would probably never use above method but knowing this would help me understand more.
One last thing, couldn't the .initialize code be automated. After a 'Dim xxxx as Button' auto add 'xxxx.initialize("xxxx")' at the top of Activity_Create.
Enough babble from me for now
keep up the good work,
cheers.
The reason I ask is that I'm getting a little confused (Maybe a note for the n00b questions post) when and when not to use .initialize. I get it in the end as the IDE reports errors if I forget them.
Now, the syntax is xxyy.initialize("event name") when referencing the control in code do you use the event name or the initial variable. Up to now I've kept the variable and event name the same so no issue, it's more of a curiousity than an problem. i.e with the following code:
Dim txtData as EditText
...
txtData.initialize("TextData")
...
Would you later reference it as txtData or TextData?
I would probably never use above method but knowing this would help me understand more.
One last thing, couldn't the .initialize code be automated. After a 'Dim xxxx as Button' auto add 'xxxx.initialize("xxxx")' at the top of Activity_Create.
Enough babble from me for now
keep up the good work,
cheers.