iOS Question Update text in labels contained in Scrollview

John Sturt

Active Member
Licensed User
Longtime User
Hello
I have a scrollview defined in a layout file and a array of labels defined in code.

I can only update the text in the first one.

Any clues?
 

John Sturt

Active Member
Licensed User
Longtime User
I fill it by code

A loop of index

scrollview.panel.addview (Label(index),a,b,c,d)

and their are no other views in the scrollview

I cannot update the text in any label apart from the first one.
I have enabled multiline.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
You should have shown us the code you use to fill the ScrollView.
Where and how do you initialize the Labels?
It seems that you are using an array of Labels.
So you could do it with Label(Index).Text = "something"
Or
Private lbl As Label
lbl = ScrollView.Panel.GetView(Index)
lbl.Text = = "something"
 
Upvote 0
Top