3个回答
展开全部
Private Sub Command1_Click()
Dim a As String, b As String
Open "C:\Documents and Settings\Administrator\桌面\新建 文本文档.txt" For Output As #1
Print #1, Text1.Text
Close #1
Open "C:\Documents and Settings\Administrator\桌面\新建 文本文档.txt" For Input As #1
Line Input #1, a
Line Input #1, b
Close #1
MsgBox a * b
End Sub
感觉这样太麻烦了。text1.text属性药设置成多行,multline=true, text1.text中输入一个数之后要换行输入
Dim a As String, b As String
Open "C:\Documents and Settings\Administrator\桌面\新建 文本文档.txt" For Output As #1
Print #1, Text1.Text
Close #1
Open "C:\Documents and Settings\Administrator\桌面\新建 文本文档.txt" For Input As #1
Line Input #1, a
Line Input #1, b
Close #1
MsgBox a * b
End Sub
感觉这样太麻烦了。text1.text属性药设置成多行,multline=true, text1.text中输入一个数之后要换行输入
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
dim a!,b!
if len(text1)=2 and isnumeric(text1)=true then
a=val(left(text1,1))
b=val(right(text1,1))
msgbox "和是" & a+b
end if
if len(text1)=2 and isnumeric(text1)=true then
a=val(left(text1,1))
b=val(right(text1,1))
msgbox "和是" & a+b
end if
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询