Find or Search Function

DunbarX at DunbarX at
Wed Aug 11 15:59:40 EDT 2010

There always seems to be a better way, but you can always:

on mouseUp
    ask "Find?"
    if it <> "" then put it into tFind
    repeat with y = 1 to the number of cds
       repeat with u = 1 to the number of flds of cd y
          if tFind is in fld u of cd y then put "fld id" && the id of fld u 
of cd y && "of" && "Card id" && the id of cd y & return after temp
       end repeat
    end repeat
    answer temp
end mouseUp

More information about the Use-livecode mailing list