<HTML><FONT FACE=arial,helvetica><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2">Try this script... it seems to indicate that they are usually pretty close, with the exception coming when the desired item is close the front of a large list, in which case itemOffset() sometimes runs much faster:<BR>
<BR>
on mouseUp<BR>
local theList<BR>
<BR>
repeat 1000<BR>
put random(1000)&comma after theList<BR>
end repeat<BR>
<BR>
delete last char of theList<BR>
put random(1000) into theNumber<BR>
<BR>
put the milliseconds into startTime1<BR>
repeat 1000<BR>
put itemOffset(theNumber, theList) into theOffset<BR>
end repeat<BR>
put the milliseconds into endTime1<BR>
put (endTime1 - startTime1) into offsetTime<BR>
<BR>
put the milliseconds into startTime2<BR>
repeat 1000<BR>
put (theNumber is among the items of theList) into isAmong<BR>
end repeat<BR>
put the milliseconds into endTime2<BR>
put (endTime2 - startTime2) into amongTime<BR>
<BR>
answer "ItemOffset:"&&offsetTime&&theOffset&cr&"Among:"&&amongTime&&isAmong<BR>
end mouseUp<BR>
<BR>
<BR>
<BLOCKQUOTE CITE STYLE="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px" TYPE="CITE"></FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2">Is "is among the lines" or "is within" faster than say:<BR>
<BR>
get lineOffSet(cr & thisStr & cr,cr & reallyBigVar & cr) ?<BR>
<BR>
Has anyone run speed tests?<BR>
</BLOCKQUOTE></FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2"><BR>
<BR>
<BR>
<BR>
<BR>
<BR>
------------------------------<BR>
Brian Yennie<BR>
Chief Technology Officer<BR>
QLD Learning, LLC<BR>
www.QLDLearning.com<BR>
<BR>
PH: (904)-997-0212<BR>
EMAIL: Yennie@aol.com<BR>
-------------------------------<BR>
</FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2"></FONT></HTML>