在VB编程中,输入ABC。(A=789;B=456;C=756,)通过点计算显示得出789456756。
在VB编程中,输入ABC。(A=789;B=456;C=756,)通过点计算显示得出789456756。要怎么写代码,谢谢或者输入AC,就显示789756,急需答案,感谢...
在VB编程中,输入ABC。(A=789;B=456;C=756,)通过点计算显示得出789456756。要怎么写代码,谢谢
或者输入AC,就显示789756,急需答案,感谢 展开
或者输入AC,就显示789756,急需答案,感谢 展开
1个回答
展开全部
private const A=789
private const B=456
private const C=756
private sub command1_click()
n=inputbox("请输入:")
for i=1 to len(n)
m=mid(n,i,1)
select case m
case "A"
s=s & A
case "B"
s= s & B
case "C"
s=s & C
end select
next i
msgbox n & "的值为:" & s
end sub
private const B=456
private const C=756
private sub command1_click()
n=inputbox("请输入:")
for i=1 to len(n)
m=mid(n,i,1)
select case m
case "A"
s=s & A
case "B"
s= s & B
case "C"
s=s & C
end select
next i
msgbox n & "的值为:" & s
end sub
更多追问追答
追答
private const A=789private const B=456private const C=756private sub command1_click()n=text1for i=1 to len(n) m=mid(n,i,1)select case mcase "A"s=s & Acase "B"s= s & Bcase "C"s=s & Cend selectnext itext2=send sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询