程序代码:
Select *,Space(2) bz From 分班 Into Cursor Temp Readwrite
cStr='0102030405060708091010090807060504030201'
For lnI=1 To Reccount()
Go lnI
Replace Bz With Substr(cStr,Iif(Mod(lnI,20)=0,20,Mod(lnI,20))*2-1,2)
Endfor
*Browse
Select * From Temp Order By Bz