我現在只能做到從起始資料儲存到第10筆資料
但如說我想從第5筆資料開始儲存到第10筆資料
請問該怎麼改
If OUT_COUNTER < 10 Then
OUT_COUNTER = OUT_COUNTER 1
Open "C:\溫感.txt" For Append As #1
Print #1, " " & Label2.Caption;
Close #1
End If
2005-12-01 17:44:35 · 1 個解答 · 發問者 MICK 1 in 電腦與網際網路 ➔ 程式設計
感謝W.J.S.
不過你那方法我試時有點錯誤
改成
If OUT_COUNTER 3 And OUT_COUNTER
2005-12-02 20:37:48 · update #1
OUT_COUNTER = OUT_COUNTER+ 1
If OUT_COUNTER 3 And OUT_COUNTER
2005-12-02 20:38:15 · update #2
Open "C:\溫感.txt" For Append As #1
Print #1, " " & Label2.Caption;
Close #1
End If
End If
就OK了
但總覺得這種寫法是不是有點怪怪的呢
2005-12-02 20:38:38 · update #3
OUT_COUNTER = OUT_COUNTER+ 1
If OUT_COUNTER > 3 And OUT_COUNTER < 10 Then
Open "C:\溫感.txt" For Append As #1
Print #1, " " & Label2.Caption;
Close #1
ElseIf OUT_COUNTER > 9 Then
OUT_COUNTER = 0
End If
抱歉之前沒注意看題目!!
2005-12-01 19:59:08 · answer #1 · answered by W.J.S. 7 · 0⤊ 0⤋