Close All
Use 表
nPage=1
nPageTotal=Int((Reccount()-1)/20)+1
Do While .T.
Clear
?'字段1 字段2 字段3 ....'
Go Top
Skip (nPage-1)*20
For lnCnt=1 To 20
If Recno()<Reccount()
?字段1,字段2,字段3,....
Skip
EndIf
EndFor
?
?'请选择(PgUp上页/PgDn下页/Esc结束)'
nChoice=Inkey(60)
Do Case
Case nChoice=27 Or nChoice=0
Exit
Case nChoice=3 And nPage<nPageTotal
nPage=nPage+1
Case nChoice=18 And nPage>1
nPage=nPage-1
EndCase
EndDo
Return