Things I Learned Recently

jbv jbv.silences at club-internet.fr
Thu Dec 11 07:48:44 EST 2008


Hi again

I just realized that there was a mistake in the code posted
in my previous message... Please find the right code below
(conclusions of the test remain the same though) :

put "toto tata titi tete" into myVar
put the milliseconds into tt
repeat 100000 times
    if wordoffset("tete",myVar) > 0 then
end if
end repeat
put the milliseconds - tt
--    returns a value between 103 and 110

put "toto,tata,titi,tete" into myVar
put the milliseconds into tt
repeat 100000 times
    if itemoffset("tete",myVar) > 0 then
end if
end repeat
put the milliseconds - tt
--    returns a value between 130 and 136




More information about the use-livecode mailing list