Solved

CR in user-defined resource text

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

679 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