VB中这段代码怎么错了?关于print输出数据到文件中
PrivateSubForm_Load()【黄色光标指的是这段】Skin1.ApplySkinMe.hWndDimsupperone,suppertwoAsInteger...
Private Sub Form_Load() 【黄色光标指的是这段】
Skin1.ApplySkin Me.hWnd
Dim supperone, suppertwo As Integer
supperone = "111"
suppertwo = "111"
If Dir("C:\Program Files\AndRoidLinux", vbDirectory) = "" Then
MkDir "C:\Program Files\AndRoidLinux"
Else
Open "C:\Program Files\AndRoidLinux\MsgUser.vxe" For Append As #1
Print #1, supperone
Print #1, suppertwo
Close
End If
End Sub 展开
Skin1.ApplySkin Me.hWnd
Dim supperone, suppertwo As Integer
supperone = "111"
suppertwo = "111"
If Dir("C:\Program Files\AndRoidLinux", vbDirectory) = "" Then
MkDir "C:\Program Files\AndRoidLinux"
Else
Open "C:\Program Files\AndRoidLinux\MsgUser.vxe" For Append As #1
Print #1, supperone
Print #1, suppertwo
Close
End If
End Sub 展开
2个回答
展开全部
Private Sub Form_Load()
Skin1.ApplySkin Me.hWnd
Dim supperone As Integer, suppertwo As Integer
supperone = 111
suppertwo = 111
If Dir("C:\Program Files\AndRoidLinux", vbDirectory) = "" Then MkDir "C:\Program Files\AndRoidLinux"
Open "C:\Program Files\AndRoidLinux\MsgUser.vxe" For Append As #1
Print #1, supperone
Print #1, suppertwo
Close
End Sub
Skin1.ApplySkin Me.hWnd
Dim supperone As Integer, suppertwo As Integer
supperone = 111
suppertwo = 111
If Dir("C:\Program Files\AndRoidLinux", vbDirectory) = "" Then MkDir "C:\Program Files\AndRoidLinux"
Open "C:\Program Files\AndRoidLinux\MsgUser.vxe" For Append As #1
Print #1, supperone
Print #1, suppertwo
Close
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询