Get actual text length

vinians

Member
Licensed User
Longtime User
Hi guys, Im creating an application where I need to know the actual text length of a button because it's size will vary according to screen size. Example:
B4X:
button.text = "The Big Phase Ever"
button.width = 100%x / 2

As you can se if the screen width of my device is short, the button will show for example "The Big". What I need to know is exactly what is shown in the button text. Thanks in advance!
 
Top