Solved

TRichEdit Steeings

Posted on 1998-02-14
1
147 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
[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
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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses
Course of the Month5 days, 18 hours left to enroll

626 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