Search & Replace being a bit unhelpful
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Search & Replace being a bit unhelpful
This is both odd and a pain-in-the-bum:
1. The button script contains significantly more than 1 incidence of the search phrase.
2. I wish to replace that search phrase, but am unable to do that owing to only one incidence being reported.
Re: Search & Replace being a bit unhelpful
I used the "Find and Replace" dialog just yesterday.
Yes, it does not report how many occurrences of your string were found, only where these werde found!
But will reliably replace all occurrences in the found script(s)!
Yes, it does not report how many occurrences of your string were found, only where these werde found!
But will reliably replace all occurrences in the found script(s)!
-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Re: Search & Replace being a bit unhelpful
Thank you very much.

It does, indeed, replace aa the vocables.werde
Re: Search & Replace being a bit unhelpful
Yep, a little typo...
But please just try it next time, I can assure, your machine will not explode!
But please just try it next time, I can assure, your machine will not explode!

-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Re: Search & Replace being a bit unhelpful
Thanks, Klaus, it warks byously. 

Re: Search & Replace being a bit unhelpful
Richmond.
Here is a stack that does what you want. It loses all instances of "good men" in a field of text. Follow the button script...
Craig
Here is a stack that does what you want. It loses all instances of "good men" in a field of text. Follow the button script...
Craig
Re: Search & Replace being a bit unhelpful
Ah. did not see Klaus' post.
You can get the number of occurrences in mine by finding the number of lines of the variable "findList".
Craig
You can get the number of occurrences in mine by finding the number of lines of the variable "findList".
Craig
-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Location of Search & Replace stack.
I should like to extend and colourise the
Find and Replace stack as:
1. I find the white-on-white tough on my eyes.
2. I would like a significantly longer textField for the Replace phrase.
But I cannot locate the stack . . .
- -
I mean the right-hand stack.
Find and Replace stack as:
1. I find the white-on-white tough on my eyes.
2. I would like a significantly longer textField for the Replace phrase.
But I cannot locate the stack . . .
- -
I mean the right-hand stack.
-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Re: Search & Replace being a bit unhelpful
Come to think of things . . .
. . . a tree diagram of all the stacks inwith the LC IDE would be extremely useful.
. . . a tree diagram of all the stacks inwith the LC IDE would be extremely useful.
Re: Search & Replace being a bit unhelpful
The stack is called "revSearch" and is located within the app bundle on Mac:But I cannot locate the stack . . .
/Users/userName/Applications/LiveCode 9.6.6 (rc 1).app/Contents/Tools/Toolset/palettes/revsearch.rev
Kind regards
Bernd
-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Re: Search & Replace being a bit unhelpful
That's super: Thank you very much.
I was looking for it using the Application Browser and getting nowhere.
I was looking for it using the Application Browser and getting nowhere.

-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Re: Search & Replace being a bit unhelpful
Thank you once again.
- -
This modified stack is derived from the Open Source version of LC 9.6.3
- -
This modified stack is derived from the Open Source version of LC 9.6.3
- Attachments
-
- revsearch.rev.zip
- Here's the stack.
- (39.17 KiB) Downloaded 182 times
Re: Search & Replace being a bit unhelpful
When the stack is open it shows up in the Project Browser. The trick is to know the nameI was looking for it using the Application Browser and getting nowhere.
For that I use from the message box
Code: Select all
put the name of the mouseStack
For the location the same procedure as above but
Code: Select all
put the long name of the mouseStack
Bernd
-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Re: Search & Replace being a bit unhelpful
Ain't dat de trouf bwana.The trick is to know the name

Your messageBox 'trick' is pure gold: Thanks.
-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Re: Search & Replace being a bit unhelpful
Change colours to suit your personal level of X£%VG&*
- Attachments
-
- revsearch.rev.zip
- Stack
- (39.57 KiB) Downloaded 173 times