Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
IDE
Search
Find
Find Error
Find in Files
Replace
You are not logged in.
Help
Print
Public Report
Report From:
Delphi-BCB/IDE/Search/Replace
[ Add a report in this area ]
Report #:
4820
Status:
Closed
Replace does not find escaped character
Project:
Delphi
Build #:
10.166
Version:
9.0
Submitted By:
John Grabner
Report Type:
Basic functionality failure
Date Reported:
6/23/2003 2:46:55 PM
Severity:
Commonly encountered problem
Last Updated:
3/20/2012 2:24:39 AM
Platform:
All versions
Internal Tracking #:
219509
Resolution:
Test Case Error
(Resolution Comments)
Resolved in Build:
:
9.0.1882.30496
Duplicate of:
None
Voting and Rating
Overall Rating:
(4 Total Ratings)
1.50 out of 5
Total Votes:
None
Description
I needed to replace \t with onther string. Using find I was able to find it. Using replace I get a message "Search string '\t' not found". It also applies to '\n'.
Steps to Reproduce:
1. In New Unit enter \t
2. Open Replace dialog
3. Enter \t in Text to find box.
4. Click OK.
5. Information message "Search string '\t' not found" displayed.
Workarounds
None
Attachment
None
Comments
Clayton Arends at 6/24/2003 12:24:12 AM
-
The replace works fine for me.
Did you do the replace immediately after doing the find? If so, the problem is that the cursor is already past the string you are searching for. Try doing the replace with the cursor at the top of the file.
John Grabner at 7/8/2003 1:37:53 PM
-
No the find was to verify that I was looking for correct text. Going to the top of the file and then trying to use replace I get that message.
Clayton Arends at 7/11/2003 8:44:48 PM
-
I'm sorry but I simply cannot reproduce your report. The IDE easily replaces the string literal "\t" (and in case I misunderstood your post I also tried the tab character with success). If you are positive that this doesn't work then please attach some *small* bitmaps which show this happening.
Daniel Daranas at 8/30/2003 5:32:59 AM
-
Please note that my comment below provides precise Steps to Reproduce.
Daniel Daranas at 8/22/2003 2:22:46 AM
-
I don't understand why this report got such a bad rating: 1.00 out of 3 ratings when I first saw it. It may not be the greatest report of all (my rating was average, not high) but anyway it describes a real problem, saying what he did, and what was the observed erroneous behaviour.
I was perfectly able to reproduce this, but just in case the Steps need some clarification, here they are:
1. New Unit.
You should now be seeing unit.cpp which looks like:
//---------------------------------------------------------------------------
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
2. Write a \t at the end of the file.
This is probably not necessary, but you should now be seeing:
//---------------------------------------------------------------------------
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
\t
3. Put cursor at the beginning, and do a Search|Find \t.
You should see \t was correctly found and highlighted.
4. Put cursor at the beginning, and do a Search|Replace \t with \z (or whatever you want as a replacement)
You should see a message "Search string '\t' not found".
Alex Fekken at 2/1/2005 9:08:13 PM
-
I must be missing something interesting here: creating a new unit in Delphi 9 produces a C++ file?
Clayton Arends at 9/2/2003 2:24:20 PM
-
And even following your example the replace works fine for me. There is obviously something else that must be done for others to be able to duplicate the report. Your system might share a similar configuration which is why you are able to duplicate the report. But, the other people that provided low marks are just not able to duplicate.
Frank Birbacher at 9/10/2003 2:49:21 AM
-
One must not select the option "look for whole words" (or whatever it is called in English). And you must not select "use regular expressions". Then the search succeeds on my system.
Daniel Daranas at 9/10/2003 7:01:24 AM
-
None of these are selected when I reproduce the error, so the "isolation mistery" remains.
Daniel Daranas at 9/3/2003 6:56:58 AM
-
This is very strange. Yes, there must be some isolation factor that makes the bug happen or not. I'm clueless.
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us