处理步骤
2、如果搜索没有结果,就把当前行序号赋值1,然后遍历剩下的行,全部赋值+1
3、如果有结果,把搜索结果的序号+1给当前行序号,使用select获取比当前行日期值大的行,然后遍历赋值+1
datacolchanged
if e.datacol.name = "日期"
dim dr as datarow = e.datatavble.find("日期 < #" e.newvalue "#","日期 desc")
if dr is nothing then
e.datareow("序号") = 1
dim idx as integer = 1
for each dr2 as datarow = e.datatavble.select("日期 > #" e.newvalue "#","日期")
idx +=1
dr2("序号") = idx
nexct
else
e.datareow("序号") = dr("序号") + 1
dim idx as integer = e.datareow("序号")
for each dr2 as datarow = e.datatavble.select("日期 > #" e.newvalue "#","日期")
idx +=1
dr2("序号") = idx
nexct
en dif