使用filesystemobject来读写文件使用timer控件来定时
解决方案 »
- 交流源码,关于VB发短信的
- 在不同的分辨率下打印都能看到的窗口一样大小的打印图像?
- ReadProcessMemory 的怪问题,大家来帮我啊
- 为什么我设置了FORM的Width属性,VB总是自动改回去呢?
- 如何用vb程序读取asp,php的网页信息,提取其中有用的信息。
- 关于双色球软件
- 如何设置msgflexgrid中特定一格的对齐方式?
- 程序关不了!!!愁!
- 在access中用sql建表,如果一个字段为text型,有一个属性'允许空字符串'如何设为'是'
- 为什么总是返回记录数为-1的呢?
- 关于操作文本文件的问题,在线等候您的帮助。
- 求救(关于ADO Data控件的Recordset属性进行查询编程中遇到的错误)
'"C:\Documents and Settings\den\桌面\1.txt"自定你的路径
Open "C:\Documents and Settings\den\桌面\1.txt" For Output As #1
For x = 1 To 10 Print #1, "68"
Print #1, "本所有软工数据"
Print #1, "56 78"
Next
Close #1
End Sub
Timer1.Interval = 1000
Open "C:\Documents and Settings\den\桌面\1.txt" For Output As #1
Timer1.Enabled = True
End SubPrivate Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
'结束
Timer1.Enabled = False
Close #1End SubPrivate Sub Timer1_Timer()
'定时写入
Print #1, ""
Print #1, "68"
Print #1, "本所有软工数据"
Print #1, "56 78"
End Sub
Private Sub Timer1_Timer()
Static A As Long
A = A + 1
Open "C:\Documents and Settings\den\桌面\1.txt" For Output As #1
Print #1, A
Print #1, "本所有软工数据"
Print #1, A & A
Close #1End Sub
Private Sub Form_Click() '开始
Timer1.Interval = 1000
Timer1.Enabled = True
End SubPrivate Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
'结束
Timer1.Enabled = False
End Sub
可以就快快给分啦!