if getglobalvar(FormulaName+'清理')<>CurrentDate and IsLastBar Then begin SetGlobalVar(FormulaName+'清理',CurrentDate); for $i=1 to STKCOUNT(FormulaName) Do Begin DELETEFROMBLOCK (STKFROMBLK(FormulaName,1) ,FormulaName); end; end;
if extgbdata(FormulaName+'清理')<>CurrentDate and IsLastBar Then begin extgbdataset(FormulaName+'清理',CurrentDate); for i=1 to STKCOUNT(FormulaName) Do Begin DELETEFROMBLOCK (STKFROMBLK(FormulaName,i) ,FormulaName); end; end;
網(wǎng)友回復(fù):
DELETEFROMBLOCK (STKFROMBLK(FormulaName,i) ,FormulaName);
把這個(gè)1改成 i 嗎