| 发表于:2008-01-17 08:40:3311楼 得分:0 |
仅仅是写 txt 文件没有必要动用 filesyatemobject: dim i as integer, j as integer, n as integer, strline as string open app.path & "\output" & format(now(), "hhnn") & ".txt" for output as #1 for i = 0 to ubound(data) step 6 strline = "" n = iif(i < ubound(data) - 6, 5, ubound(data) - i) for j = 0 to n strline = iif(strline > "", " ", "") & format(data(i + j), "00#") next j print #1, strline next i close #1 | | |
|