Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Incompatible types

Posted on 2002-03-17
2
Medium Priority
?
152 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 100 total points
ID: 6873624
r := StringReplace(r,'&','%26',[rfReplaceAll]);
0
 

Author Comment

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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

916 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