Solved

TRichEdit Steeings

Posted on 1998-02-14
1
142 Views
Last Modified: 2010-04-04
 I would like to advance the program in the Delphi Demo section for the Text Editer.  The only problem is I have to save the file as a true ASCII file.  (No added Codes)  Is there a way to set Trich to save as a true text file only..
 
0
Comment
Question by:jim zerbe
1 Comment
 
LVL 4

Accepted Solution

by:
itamar earned 50 total points
ID: 1359195
Hi jim,

detect if the TXT type was selected by the user when saving the file and set the PlainText property to true. Example:

  If UpperCase(ExtractFileExt(SaveDialog.FileName)) = '.TXT' Then
     RichEdit1.PlainText := True;
  RichEdit1.Lines.SaveToFile(SaveDialog.FileName);
  RichEdit1.PlainText := False;

Don't forget setting the PlainText to false again.


IHTH,

Itamar
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
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…

770 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