Solved

Incompatible types

Posted on 2002-03-17
2
139 Views
Last Modified: 2013-12-03
Hello,

I try to find and change 1 character into 3 characters with :

r : string;

while Pos('&', r) > 0 do
r[Pos('&', r)] := '%26';

I'm looking for some code that can do this.

Thanks,
Vincent
0
Comment
Question by:Vincentg
2 Comments
 
LVL 6

Accepted Solution

by:
zebada earned 25 total points
ID: 6873624
r := StringReplace(r,'&','%26',[rfReplaceAll]);
0
 

Author Comment

by:Vincentg
ID: 6873637
Thanks for your quick response ;)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

911 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

23 Experts available now in Live!

Get 1:1 Help Now