Find command (find previous)

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
baziukj
Posts: 1
Joined: Fri Oct 02, 2009 5:10 pm

Find command (find previous)

Post by baziukj » Fri Oct 02, 2009 5:24 pm

I’m very new to the whole Revolution suite, and trying to create a simple Rolodex system (phone list where each new card in the Stack ‘stackRolodexCards’ is a contact’s information). I’ve also got a second stack ‘stackSearch’ that functions as a very simple search window; type in a search parameter and clicking enter cycles through ‘stackRolodexCards’ finding the entered parameter.

Code: Select all

on returnInField -- goes in Find field's script
   if me is empty then
      beep -- nothing to find
   else
      set the defaultStack to "stackRolodexCards"
      find string the text of me -- "me" is the field
   end if
end returnInField
My find really just functions as a ‘find next’ (and does exactly what I want it to do) but is there a way to create a ‘find previous’ function?[/code]

Post Reply