Solved

how to align text in a memo component from a file

Posted on 2000-03-12
2
249 Views
Last Modified: 2010-04-04
I am using Delphi5

I write to a text file as below
   
AssignFile(outfile, 'c:\music selection\dispsongs.txt');
Rewrite(outfile);

I load this file using memo.lines.loadfromfile

the text is not aligned in columns.

I have when writing to the file used field width numbers eg.
writeln(outfile, datamodule1.tblMuicSelSong['CdName']:30

If I open this file using windows notepad the columns align correctly

How do I fix this problem?

Thanks for your reply

Ivan
0
Comment
Question by:icarey
[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
 

Accepted Solution

by:
toesable earned 100 total points
ID: 2611082
Notepad is set up (usually) to use a fixed width font.  Are you using a fixed width font like courier new in your memo?  This should fix the probem, but if you want to use a variable sized width font like ms-san seriff or Times New Roman, maybe someone else can help you with that.  
0
 
LVL 7

Expert Comment

by:Motaz
ID: 2611100
That is exactly the solution toesable.

Motaz
0

Featured Post

Independent Software Vendors: 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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

688 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