select subs_var_select set filter to ordnmb=m.ordlin.ordnmb and lnline=m.ordlin.lnline go top wRepriceStones = .T. nStyle_Stone_Price=0 nOrdLin_Var_Price = 0 nDiamValu = 0 nClrValu = 0 nProtected = 0 scanvs
wRepriceStones = .T. store 0 to nStyle_Stone_Price, nOrdLin_Var_Price, nDiamValu, nClrValu, nProtected SELECT subs_var_select SCAN FOR ordnmb=m.ordlin.ordnmb AND lnline=m.ordlin.lnlineThe second batch of code takes less time to execute and less time to step through in the debugger. It's easier to understand. These are facts, not opinion. A set filter, then a go top is wasteful. Go top is not going to respect the filter, even if it is optimized. Scan does a go top by default.