當用戶輸入數量,如何把記錄顯示出來 ( 积分: 0 )

  • 主题发起人 主题发起人 playvc
  • 开始时间 开始时间
P

playvc

Unregistered / Unconfirmed
GUEST, unregistred user!
資料庫現在有100條記錄,但是我只想查出10條記錄出來(當用戶輸入數量後,如何把記錄過濾出來),謝謝各位大大

Enter Find Mode[]
Perform Find[Restore]
If[Get(FoundCount)=0]
Show Custom Dialog["Find";"Not Found"]
Else
Sort Records[Restore;No dialog]
Go to Record/Request/Page[First]
Go to Record/Request/Page[Next]
End if
Perform Script["過濾數量"]


(過濾數量)
Set Field[Table::Count;1] // Count是Global
Go to Record/Request/Page[First]
Loop
If[主表::數量 = 主表::Count] // 數量是Global(讓用戶輸入的),Count也是
Exit Script[]
Else
Set Field[主表:Count;主表:Count+1] // Count是Global
Go to Record/Request/Page[Next]
End if
End Loop
 
資料庫現在有100條記錄,但是我只想查出10條記錄出來(當用戶輸入數量後,如何把記錄過濾出來),謝謝各位大大

Enter Find Mode[]
Perform Find[Restore]
If[Get(FoundCount)=0]
Show Custom Dialog["Find";"Not Found"]
Else
Sort Records[Restore;No dialog]
Go to Record/Request/Page[First]
Go to Record/Request/Page[Next]
End if
Perform Script["過濾數量"]


(過濾數量)
Set Field[Table::Count;1] // Count是Global
Go to Record/Request/Page[First]
Loop
If[主表::數量 = 主表::Count] // 數量是Global(讓用戶輸入的),Count也是
Exit Script[]
Else
Set Field[主表:Count;主表:Count+1] // Count是Global
Go to Record/Request/Page[Next]
End if
End Loop
 
后退
顶部