I do see that there is much more management with the "offset", however, I believe I can use the offset without having to actually navigate to the other stack, and I found that going to another stack and using the "Find" there unlocks the screen (bad).
I want the entire search done in one go with a list of all the found occurrences. On Dec 17, 2012, at 3:45 PM, dunb...@aol.com wrote: > I do not know if I am understanding you correctly, but my instincts say that > "find" is the right way to go. "Offset" would require more management, > whereas "find" is pretty self reliant. > > > How would you use "offset" over multiple stacks anyway? Navigate to each card > in each stack, and then test each field in turn, noting if the offset > function returned a value or not? Certainly there is a value to this, in that > the "offset" function can be tailored to find multiple instances. > > > Perhaps a mixture of the two, "find" to get quickly to a card that has a hit, > and then "offset" to find multiple instances? > > > Craig Newman > > > > > -----Original Message----- > From: Peter Bogdanoff <bogdan...@me.com> > To: How to use LiveCode <use-livecode@lists.runrev.com> > Sent: Mon, Dec 17, 2012 6:31 pm > Subject: Find vs. Offset > > > Hi, > > I have a stack with multiple substacks. One of the substacks is a Search tool > to > find text in the other substacks. Given a string to find, it searches the > other > stacks, returns a list of the cards where the string was found (there may be > multiple hits on the same card), and puts excerpts of the strings of text (3 > words before and after the found chunk) into a field. The user then clicks on > a > line of the field to go to a card where the text was originally found--there > I > do another Find to put the found box around the text. > > Am I right in assuming that I should use the offset function to do the > original > search rather than the Find command? > > I see that when I use the Find command, although I lock the screen, it is > unlocked after going to each stack. Also I suspect it is a much slower method. > > There is a lot more scripting to do with the offset to search multiple > fields, > and multiple hits in the same field, to I would like to know if this is the > best > method. > > Any experience with this? > > Peter > UCLA > > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode