?
Solved

TFileNameEdit - Eliminate double code for the path name

Posted on 2004-08-02
4
Medium Priority
?
643 Views
Last Modified: 2012-06-27
I would like to set the path by using TFileNameEdit  which compatible to use for all OS? I found that the 2 lines as below is just suitable to use for win98, when it run in winXp, the filename return as "c:\index.txt" (which it should be return as  c:\index.txt without double code on it). How to eliminate the double code from the string?

  tsFile:=TStringList.Create;
  tsFile.LoadFromFile(FilenameEdit1.FileName);
0
Comment
Question by:authumn
[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
4 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 1000 total points
ID: 11691761
>How to eliminate the double code from the string?
i gues you mean double-quote

take a look to stringreplace, like, just from head

result := stringreplace(source,'"','',[frReplaceAll]);
 
meikl ;-)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
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…
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month15 days, 16 hours left to enroll

741 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