function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
nwingnwing 

How do you represent a return character in an apex text string?

 

I just want to update a long text field, but insert a return character and spaces as well.  I have not found yet the way to do that.  Any suggestions?

 

thanks,

Anand@SAASAnand@SAAS

Appending '\n' or '\r\n' should do the trick.