Android Question label_change event

Csaba Balogh

Member
Licensed User
Hi Everyone, I just wondered if there's a change event for label. Has anybody coded a solution? It may be simpler than I think it is...
I would like to catch the change of text property. Something like:

B4X:
Sub lblMyLabel_Changed(changed as Boolean)

End Sub

I know label is not ment to be treated this way but I have one certain layout full of labels, and it would be easier for me to do so.
 
Last edited:

Csaba Balogh

Member
Licensed User
There is no such event and you don't need one. Only your code can change the label's text.

Create a sub such as:
B4X:
Sub SetLabelText (lbl As Label, Text As String)
 'do whatever you want to do
 lbl.Text = Text
End Sub
Thanks Erel for the perfect solution.
 
Upvote 0
Top