Solved

TFileNameEdit - Eliminate double code for the path name

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
When I am typing into a TEdit last word repeats 7 145
Create Database on Android via Delphi dbExpress 3 110
Dev express lookupcombo 3 34
Twebbrowser add css to the header 3 27
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

809 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