using Find

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
jlehet
Posts: 2
Joined: Wed Dec 12, 2007 2:17 am
Contact:

using Find

Post by jlehet » Thu Dec 20, 2007 4:53 am

This must be a stupid question, but I can't get Find (command F) to work in a stack anything like the way I'd expect. Suppose I've got a stack with lots of cards with lots of fields on each card. I want to find "foo" in one or a few of those places. I type command F, type in "foo" searching "in this stack." The result will give me card ids and field names, but I can't actually reveal "foo" from the interface. It seems I have to type "go card id xxxx" into the message box after the find? And then on that card I have to dig through the fields searching for "foo?"

If for example I have cards with lots of scrolling fields full of information, I have to actually copy those fields and paste them into BBEdit or something, and then search for the string there. It seems there must be something straightforward, but I'm missing it in the UI and in the documentation.

Thanks for any help. I hope you have good news.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Thu Dec 20, 2007 10:11 am

hi jlehet,

You can double-click a result listed in the Find & Replace window and it will bring you to the right stack.

Another way to search for a string in a fields is to enter

find "some string"

in the message box and press enter. This will automically bring you to the card with the next search result and put a tiny box around the found chunk. To find the next instance of the string, just press enter again, before doing anything else.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

jlehet
Posts: 2
Joined: Wed Dec 12, 2007 2:17 am
Contact:

Post by jlehet » Thu Dec 20, 2007 1:24 pm

Ah good, the message box saves the day.

As for the result of the Find Dialog box, double clicking on a result gives me an empty script editor window. I've double clicked these until my fingers are blue, and it's always the same result. Maybe a preference setting somewhere? A bug?

brucelaidlaw
Posts: 8
Joined: Tue Mar 25, 2008 12:30 pm
Contact:

Using Find

Post by brucelaidlaw » Sat Apr 05, 2008 4:07 am

Double clicking the result in the Find dialog box SOMETIMES opens the script, but OFTEN does nothing. Has anyone found an answer to this?
:?

brucelaidlaw
Posts: 8
Joined: Tue Mar 25, 2008 12:30 pm
Contact:

using Find

Post by brucelaidlaw » Sat Apr 05, 2008 5:07 am

I've just had a closer look. Double-clicking only opens button scripts for me. It won't open scripts in fields, cards or stacks??? :?

Post Reply