kcString = REPLICATE("a",100) >a=SECONDS() >FOR y = 1 TO 100000 > lcstring = "" > lcComma="" > for x = 1 to 10 > lcString = m.lcString + lcComma+kcString > lcComma=", " > endfor >ENDFOR y >?"create comma each time",SECONDS()-m.a >Here's one Gene Wirchenko from Foxite just sent me...
a=SECONDS() FOR y = 1 TO 100000 lcstring = kcString for x = 2 to 10 lcString = m.lcString + "," + kcString endfor ENDFOR y ?"(Skip adding the last comma and having no if.)",SECONDS()-m.aThat seems completely workable, but my gut tells me it can't work for a do while loop. Can't put my finger on the problem.