Solved

CR in user-defined resource text

Posted on 1997-06-18
2
151 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

860 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