[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 665
  • Last Modified:

TFileNameEdit - Eliminate double code for the path name

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
authumn
Asked:
authumn
1 Solution
 
kretzschmarCommented:
>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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now