Splitting a String Variable split onto 2 lines using Chr(13) or "\n"


Recommended Posts

The variable value component will never display two lines.  It ignores CR's and LF's.  You would need to use a text component for this.  The easiest way is to do this is to set the OnPaint event for the text component to "strText = myVariable".  

I've attached an example (requires 17.1+)

 

twoLineSample.ctl

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share