标题: 在一个脚本中开了2次数据次!怎么解决? [打印本页] 作者: 9880953 时间: 2007-5-21 15:03 标题: 在一个脚本中开了2次数据次!怎么解决? $Include "sqautil.sbh"
Sub Main
Dim Result As Long
Dim ids As LONG
Dim dp_name as String
Dim dp_number as String
Dim dp_log as String
dim num as integer
'Initially Recorded: 2004-3-5 14:20:44
'Script Name: test
ids=SQADatapoolOpen ("abc",false,SQA_DP_SEQUENTIAL,true)
for num=1 to 4
Result = SQADatapoolFetch (ids)
call SQADatapoolValue (ids, 1, dp_number)
msgbox dp_number
next num
Result=SQADatapoolClose (ids)
msgbox "ok"