在下面的示例中,名为 notes 的备注字段内容被复制到名为 test.txt 的文件中,然后再复制一次备注字段并追加到文本文件尾。
close databases
open database (home( ) + 'samples\data\testdata')
use employee && 打开 employee 表
copy memo notes to test.txt
wait window 'memo contents now in test.txt' nowait
modify file test.txt
copy memo notes to test.txt additive
wait window 'memo contents added again to test.txt' nowait
modify file test.txt
delete file test.txt