CH2014 Posted November 9, 2022 Share Posted November 9, 2022 Hi, Is it possible to insert a line feed character into a string variable. In order to force it onto 2 lines in a "Variable Value Component"? I have tried chr(13) & chr(10) with no success. Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted November 9, 2022 Share Posted November 9, 2022 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 Quote Link to comment Share on other sites More sharing options...
CH2014 Posted November 10, 2022 Author Share Posted November 10, 2022 Hi Azeotech, Thanks for that. I will modify the project to use the TEXT component instead. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.