Populate 指令
用於 Server.Load Script,以確定現行資料庫中有 (NumMailNotesPerUser) 文件。
此指令鎖定資料庫(以防止其他使用者同時執行其他 Populate 指令),取得目前在資料庫中的文件數目,並視需要新增文件。
語法
Populate (NumMailNotesPerUser) [folder]
其中:
- NumMailNotesPerUser:您要讓資料庫擁有的文件總數
- folder:將新增文件的資料夾或視圖
範例
此範例建立及初始設定郵件檔;將文件新增到資料夾 $Inbox 中。
註: 星號 (**) 括住的文字表示註解。
changeto [MailServer]!!mail\mail[#].nsf mail46.ntf
**確定郵件資料庫中有足夠的文件**
populate [NumMailNotesPerUser] $Inbox
**開啟現行視圖**
open
**關閉視圖**
close
drop