How to get TextBox lines count?

Discorez

Member
Licensed User
Longtime User
This code (with Door lib) causes an exception:

B4X:
Obj.New1(False)
Obj.FromControl("TextBox1")
Msgbox(Obj.GetProperty("LineCount"))
 

Zenerdiode

Active Member
Licensed User
The property you should be requesting is "Lines" rather than "LineCount" and I think it returns an array where each element is the contents of the line.
 
Top