查看: 945|回复: 3
|
请问vb 6.0 code
[复制链接]
|
|
我有一个vb6.0 的coding是用来open text file 的 :
Open TimeTableFileName For Input As #1
....
....
...
请问我要如何close掉这text file without end my program???
Coz when i try to run add new record after 1st time record,the error "file already open" always prompt out..., :S, this cause me always need to close my whole program then re-run the program for new record. |
|
|
|
|
|
|
|
发表于 18-4-2006 05:26 PM
|
显示全部楼层
原帖由 海星1988 于 18-4-2006 02:48 PM 发表
我有一个vb6.0 的coding是用来open text file 的 :
Open TimeTableFileName For Input As #1
....
....
...
请问我要如何close掉这text file without end my program???
Coz when i try to run add ne ...
试下这个:
close #1 |
|
|
|
|
|
|
|
楼主 |
发表于 18-4-2006 05:59 PM
|
显示全部楼层
yup..., 可以了,谢谢你,好像很简单哦.., 我想得太复杂了!! |
|
|
|
|
|
|
|
发表于 19-4-2006 11:26 AM
|
显示全部楼层
用FileSystemObject会比较好,Open并不是那么好用。 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|