Solved

how to align text in a memo component from a file

Posted on 2000-03-12
2
243 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

914 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

17 Experts available now in Live!

Get 1:1 Help Now