open
有个变量如果为filename然后用open打开
Open "c:\‘“& FILENAME &"' " For Input As #FreeNum
报错,应该怎么写呢? --------------------编程问答-------------------- Open "c:\" & FILENAME & " " For Input As #FreeNum
试试 --------------------编程问答-------------------- "c:\‘“&
全角标点啊,兄弟 --------------------编程问答-------------------- Open "c:\" & FILENAME For Input As #FreeNum --------------------编程问答-------------------- --------------------编程问答-------------------- 给你个例子吧,别用全角标点阿。
Dim intFileNumber As Integer
intFileNumber = FreeFile()
Open App.Path & "\Error.log" For Input As intFileNumber
Close intFileNumber
补充:VB , 基础类