Solved

CR in user-defined resource text

Posted on 1997-06-18
2
147 Views
Last Modified: 2010-04-04
I'm a first time Delphi user and I'm stuck on one small problem.  I know to add a carriage return in a string within a STRINGTABLE, insert \012.  However, when I try that in text within a user-defined resource, it prints a garbage symbol and doesn't perform a carriage return.  How do I insert a carriage return in this case?
0
Comment
Question by:aaronh
2 Comments
 
LVL 2

Accepted Solution

by:
icampbe1 earned 50 total points
ID: 1337182
Using the \012 is correct.  It sounds like the cr is being stored correctly and also being recovered correctly.  You dont say how you are displaying the string to view it.  Does the display technique (component or whatever) conver a cr to another symbol??   This should be pretty straight forward...  A bit more info maybe.

Ian C.
0
 

Author Comment

by:aaronh
ID: 1337183
It may be helpful, but it really didn't shed much light on a solution.  I will look to see if displaying strings in a TMemo.Lines field somehow converts carriage returns to something else, however.  I do appreciate the response.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now