Solved

Incompatible types

Posted on 2002-03-17
2
137 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
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…
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

12 Experts available now in Live!

Get 1:1 Help Now