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: FourthWorld, heatherlaine, Klaus, kevinmiller

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

Searching code for string

Post by CAsba » Fri Nov 11, 2022 2:34 pm

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: 9432
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Searching code for string

Post by richmond62 » Fri Nov 11, 2022 2:38 pm

Use the Search & replace thing:
-
Screen Shot 2022-11-11 at 3.40.29 PM.png

CAsba
Posts: 371
Joined: Fri Sep 30, 2022 12:11 pm

Re: Searching code for string

Post by CAsba » Fri Nov 11, 2022 3:39 pm

Thanks for that, but, where do I find the search and replace thing ?

Klaus
Posts: 13852
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Searching code for string

Post by Klaus » Fri Nov 11, 2022 3:55 pm

Sigh...
Screen Shot 2022-11-11 at 3.40.29 PM.png

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9432
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Searching code for string

Post by richmond62 » Fri Nov 11, 2022 4:01 pm

Screen Shot 2022-11-11 at 5.04.04 PM.png

Klaus
Posts: 13852
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Searching code for string

Post by Klaus » Fri Nov 11, 2022 4:35 pm

Ah, sorry, CAsba meant that one...

CAsba
Posts: 371
Joined: Fri Sep 30, 2022 12:11 pm

Re: Searching code for string

Post by CAsba » Fri Nov 11, 2022 4:38 pm

Whoopee ! Got it ! Thanks a million.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9701
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Searching code for string

Post by dunbarx » Fri Nov 11, 2022 5:37 pm

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

Return to “Getting Started with LiveCode - Complete Beginners”