Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist > Bug Reports
Documentation Wiki Register Members List B4P 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, 06:59 PM
LineCutter's Avatar
Senior Member
 
Join Date: May 2007
Location: Daarsit
Posts: 160
Awards Showcase
Beta Tester 
Total Awards: 1
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, 07:45 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Did you check the "Replace in selection" option?
Reply With Quote
  #3 (permalink)  
Old 02-10-2008, 11:53 PM
LineCutter's Avatar
Senior Member
 
Join Date: May 2007
Location: Daarsit
Posts: 160
Awards Showcase
Beta Tester 
Total Awards: 1
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, 03:56 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I'm unable to reproduce this problem.
Does it happen every time?
Reply With Quote
  #5 (permalink)  
Old 02-11-2008, 04:49 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
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, 09:57 PM
LineCutter's Avatar
Senior Member
 
Join Date: May 2007
Location: Daarsit
Posts: 160
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Attachment 1117
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 10: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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find and Replace JamesC Basic4ppc Wishlist 4 11-18-2008 04:45 PM
Find/Replace Dialog? tsteward Questions (Windows Mobile) 1 10-17-2008 02:07 PM
Slow Replace in Table Zenerdiode Questions (Windows Mobile) 6 09-22-2008 10:33 PM
Search and Replace on Device IDE Woinowski Basic4ppc Wishlist 1 01-20-2008 12:50 AM
Replace encoding UTF 8 by UTF 7 EdQas Questions (Windows Mobile) 6 09-16-2007 05:36 PM


All times are GMT. The time now is 09:09 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0