Android Question Question re custom view workings

keb

New Member
Licensed User
Longtime User
I have created a custom view. In DesignerCreateView I Initialize and AddView two labels (they are Private in Class_Globals), then set their properties. All goes well, they appear as expected. However, I seem to be unable to reference these labels in the property access routines (setxxx and getxxx). For the property N (a long) in the setN routine I get

java.lang.RuntimeException: Object should first be initialized (Label).

from

lblN.Text = "(text)"

These labels and their properties seem to be only visible from the DesignerCreateView routine.

I have experience at VB6 style object programming, but this may be different enough that I am missing something. Thank you.
 
Top