On 10/11/2015 9:26 PM, [email protected] wrote:
function findItemLessThanIndex tData,tIndex
put comma & tIndex after tData
sort items of tData numeric
return item itemOffset("5",tData) -1 of tData
end findItemLessThanIndex
I thought of that too, but it fails if tIndex isn't in the list. The
example list was: "1,3,4,7,9" and the target limit was 5.
I couldn't see a way that avoids looping through all the values.
--
Jacqueline Landman Gay | [email protected]
HyperActive Software | http://www.hyperactivesw.com
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode