open "c:\Test.txt" for Append as #1
print #1,sum
close #1
Window CloseWin, "", ""
next
Call SQADatapoolClose(dp)
我读到第二个就读不出了,我数据池中只有两个数据,为什么呢,请版主帮忙
[ Last edited by djw1999 on 2005-3-7 at 22:31 ]作者: pcl2004_27 时间: 2005-3-8 09:22
你的脚本代码编写的不利于调试,datapool的调用没有返回值!到底是否调用成功,你无法确认!
代码如下:
'$Include "sqautil.sbh"
DIM dp_id as Long
DIM dp_Result as Long
dp_id = SQADatapoolOpen ("repo_dp1", FALSE, SQA_DP_SEQUENTIAL, FALSE)
dp_Result = SQADatapoolFetch (dp_id)
dp_Result = SQADatapoolClose (dp_id)