Code: Select all
on mouseUp
set itemDelimiter to TAB
ask "Search item? "
put it into SX
put 1 into ELEVATOR
repeat until ELEVATOR > 20
put 1 into LATERAL
repeat until LATERAL > 20
put (item LATERAL of line ELEVATOR of fld "tf") into XS
if (quotes & XS & quotes) = (quotes & SX & quotes) then
put (SX && "in cell" && LATERAL & "," & ELEVATOR) into fld "rez"
end if
add 1 to LATERAL
end repeat
add 1 to ELEVATOR
end repeat
end mouseUp
Deleted stack as there is an "upgraded" (read "side-graded") version attached to the next posting.