When I put this code in a sub in my larger app, I get Unknown member: MeasureMultilineTextHeight
When I put the same code in a brand new b4a app by itself, I don't get the error.
This code is from the
MeasureMultilineTextHeight
entry here: https://www.b4x.com/android/help/stringutils.html#stringutils_measuremultilinetextheight
Any ideas?
When I put the same code in a brand new b4a app by itself, I don't get the error.
This code is from the
MeasureMultilineTextHeight
entry here: https://www.b4x.com/android/help/stringutils.html#stringutils_measuremultilinetextheight
B4X:
Dim Label1 As Label
Label1.Initialize("")
Label1.Text = "this is a long sentence, and we need to " _
& "know the height required in order To show it completely."
Label1.TextSize = 20
Activity.AddView(Label1, 10dip, 10dip, 200dip, 30dip)
Dim su As StringUtils
Label1.Height = su.MeasureMultilineTextHeight(Label1, Label1.Text)
Any ideas?