Solved

TFileNameEdit - Eliminate double code for the path name

Posted on 2004-08-02
4
616 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
Comment Utility
>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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now