>TLOCAL lnCount as Integer >FOR i = 1 TO 5 > Local lnStart > lnStart = Seconds() > lnCount = 0 > Do While m.lnCount < 5000000 > m.lnCount = m.lnCount + 1 > EndDo > ? i, Seconds()-lnstart, "sec. for 5,000,000 iteration" >ENDFOR >? "Ready" >Such a construct should be eliminated by the JIT-compiler. But I found a smilar way to count to 499 once in live code including one substraction after a for loop to 500<g>. But seriously, strong typing in the Dotnet-compiler can be a real help if you need to speed up specific functions/methods working on memvars. For this type of work in vfp I usually have to go "native" via fll and this can eat up budget, especially if maintainance has no idea of C...