Android Question Using AutoTextSizeLabel code module, prompt type does not match

cxdzbl

Active Member
Licensed User
Dim Labt As AutoTextSizeLabel=pan.GetView(2)

Types do not match(waming #22)
 

cxdzbl

Active Member
Licensed User
Please use [code]code here...[/code] tags when posting code.

AutoTextSizeLabel is not a view.
pan.GetView(2) will return the base panel.

1. Add the following line to DesignerCreateView
B4X:
Base.Tag = Me

2. You can now get the AutoTextSizeLabel with:
B4X:
Dim a As AutoTextSizeLabel = pan.GetView(2).Tag

Very good, thank you.
 
Upvote 0
Top