Searching code for string

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
CAsba
Posts: 452
Joined: Fri Sep 30, 2022 12:11 pm

Searching code for string

Post by CAsba »

Hi,
Is it possible in LC to search for string in the code that's been written ? And so find the code that ccontains the string.
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10428
Joined: Fri Feb 19, 2010 10:17 am

Re: Searching code for string

Post by richmond62 »

Use the Search & replace thing:
-
Screen Shot 2022-11-11 at 3.40.29 PM.png
CAsba
Posts: 452
Joined: Fri Sep 30, 2022 12:11 pm

Re: Searching code for string

Post by CAsba »

Thanks for that, but, where do I find the search and replace thing ?
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Searching code for string

Post by Klaus »

Sigh...
Screen Shot 2022-11-11 at 3.40.29 PM.png
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10428
Joined: Fri Feb 19, 2010 10:17 am

Re: Searching code for string

Post by richmond62 »

Screen Shot 2022-11-11 at 5.04.04 PM.png
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Searching code for string

Post by Klaus »

Ah, sorry, CAsba meant that one...
CAsba
Posts: 452
Joined: Fri Sep 30, 2022 12:11 pm

Re: Searching code for string

Post by CAsba »

Whoopee ! Got it ! Thanks a million.
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10507
Joined: Wed May 06, 2009 2:28 pm

Re: Searching code for string

Post by dunbarx »

CAsba.

That tool is invaluable. It can find anything anywhere. I use it mainly to search the Script Editor (SE), but know that in order to access it, you cannot have the SE in focus. If you do you will only see the "local" SE version of Find and Replace, as opposed to the more powerful one accessed from a stack.

So you should have both your stack and the SE open. With the stack in focus, you can then access the tool. Make sure the "Script" checkbox is hilited.

Craig
Post Reply