Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Bug Reports
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.


Find & replace bug:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-09-2008, 05:59 PM
Knows the basics
 
Join Date: May 2007
Location: Daarsit
Posts: 94
Default Find & replace bug:

6.05 desktop IDE
Highlighting a set of binary variables in one sub & opting to replace all "false" with "true" causes the IDE to replace all "false" with "true" in the following subroutine, leaving the highlighted ones alone & not altering anything else in the program.
I'd have thought it was a matter of searching one sub too far down the source code, but trying to be clever & highlighting the next sub up only replaced half of the items I expected.
Weird.
Reply With Quote
  #2 (permalink)  
Old 02-10-2008, 06:45 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,811
Default

Did you check the "Replace in selection" option?
Reply With Quote
  #3 (permalink)  
Old 02-10-2008, 10:53 PM
Knows the basics
 
Join Date: May 2007
Location: Daarsit
Posts: 94
Default

Yes, although I admit I could have been clearer stating that.

The surprise was that the highlighted section was untouched & the next sub was altered.
Reply With Quote
  #4 (permalink)  
Old 02-11-2008, 02:56 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,811
Default

I'm unable to reproduce this problem.
Does it happen every time?
Reply With Quote
  #5 (permalink)  
Old 02-11-2008, 03:49 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,336
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I haven't seen a problem with "Replace All" but I have noticed that if a selection is highlighted and "Replace in selection only" is ticked and a replace target does not actually exist in that selection then "Replace Next" will ignore the selection and replace the next match it finds outside the selection. This is in contrast to "Replace All" that constrains itself to the selection and correctly reports no strings are replaced.
Reply With Quote
  #6 (permalink)  
Old 02-11-2008, 08:57 PM
Knows the basics
 
Join Date: May 2007
Location: Daarsit
Posts: 94
Default

ReplaceBug.sbp
I've mercilessly butchered your phone program Erel
The Repeated section in 2 subs is obvious enough, as are the instructions.

I get the replacements after the highlighted section.

EDIT:
a) the first Box2 should obviously be box3
b) Repeating this in the same file made it do the right thing! Weird, especially when I made sure that it misbehaved before I posted the file.

Would you settle for an intermittent bug report, for now at least. I'll try & work out what it needs to provoke it.

Last edited by LineCutter : 02-11-2008 at 09:03 PM.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
find keyword lijingtong Questions & Help Needed 2 06-20-2008 09:05 AM
Find and Replace JamesC Basic4ppc Wishlist 0 05-16-2008 02:40 AM
Search and Replace on Device IDE Woinowski Basic4ppc Wishlist 1 01-19-2008 11:50 PM
How to find x,y of stilus on image ? nomick Questions & Help Needed 9 12-24-2007 11:00 AM
Replace encoding UTF 8 by UTF 7 EdQas Questions & Help Needed 6 09-16-2007 04:36 PM


All times are GMT. The time now is 12:44 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0