Solved

CR in user-defined resource text

Posted on 1997-06-18
2
155 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses
Course of the Month4 days, 6 hours left to enroll

630 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