1个回答
展开全部
Dim a As Long
Private Sub Command1_Click()
a = a * 10 + a Mod 10
Text1.Text = Val(Text1.Text) + a
End Sub
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
a = Val(Text1.Text)
End Sub
Private Sub Command1_Click()
Dim x As Integer, sum As Long
Dim i As Integer, t As Integer
t = Val(Text1.Text)
x = 3
For i = 1 To x
sum = sum + t
t = t * 10 + t Mod 10
Next
Text1.Text = sum
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询