vb里面怎么在FOR循环里面用MsgBox函数

2025-05-23 08:04:25
推荐回答(1个)
回答1:

private
sub
form_click()
dim
a
as
integer
dim
b
as
integer
a
=
val(t1.text)
b
=
val(t2.text)
msg$
=
"你选择做除法吗?"
title$
=
"请选择"
x
=
msgbox(msg$,
20,
title$)
if
x
=
6
then
l2.caption
=
"您求得的结果是"
&
str(a
/
b)
else
l2.caption
=
"您求得的结果是"
&
str(a
mod
b)
end
if
end
sub