FUNCTION Str2num LPARAMETERS tcStr, tnLen LOCAL lnI, lnReturn lnReturn = 0 FOR lnI = tnLen TO 1 STEP -1 lnReturn = (lnReturn * 256) + ASC(SUBSTR(tcStr, lnI)) NEXT RETURN TRANSFORM(lnReturn, '999,999,999,999,999')It's a little less expensive (3.31 seconds compared to 4.13 seconds on 1M iterations), though it hardly matters.