iOS Question how to add cr/lf to textfield in designer

John Woodsmall

Active Member
Licensed User
Longtime User
I need to format a textfield in the designer, which means i have to put in cr or lf
in the textfield in the designer and it works just fine. However when I replace
the text in the textfield (which i do when i switch languages) i have just a simple
string of letters. So my question:

How do i put cr/lf into a string that is to replace text in a textfield created in the designer?
(do i just put in a char(10) and char(13) ) or what?
 

ilan

Expert
Licensed User
Longtime User
when you replace the text and you do something like this

B4X:
dim txt as string = "line1" & crlf & "line2"
textfield1.text = txt

will you get the crlf?
 
Upvote 0
Top