Solved

TFileNameEdit - Eliminate double code for the path name

Posted on 2004-08-02
4
633 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 250 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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
Correct Component for Shopping Cart. 2 121
Press three keys together and trigger a function 3 67
MS Access from Delphi 31 81
shape, triangle, dbctrlgrid 3 33
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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 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