请问下怎么将文本框里的“text1"等去掉?
计算器.zip
(3.7 KB)
如以上附件中的那个文本框一样
代码是:
程序代码:
Private Sub Command1_Click() Dim a, b As Double a = Text1 b = Text2 s = a / b Text3 = s End Sub Private Sub Command4_Click() Dim a, b As Double a = Text1 b = Text2 s = a + b Text3 = s End Sub Private Sub Command5_Click() Dim a, b As Double a = Text1 b = Text2 s = a - b Text3 = s End Sub Private Sub Command6_Click() Dim a, b As Double a = Text1 b = Text2 s = a * b Text3 = s End Sub