大学VB 求程序 谢谢啦
2个回答
展开全部
Private Sub Command1_Click()
Dim t As String, j As Long, s As String
Me.Cls
t = Text1
For j = Len(t) To 1 Step -1
s = s & Mid(t, j, 1)
Next
Print "反向输出结果:"; s
End Sub
Private Sub Form_Load()
Text1 = "ABCD"
Command1.Caption = "反向输出"
End Sub
Private Sub Command1_Click()
Dim t As String, j As Long, s As String
Me.Cls
t = Text1
For j = 1 To Len(t)
s = Mid(t, j, 1) & s
Next
Print "反向输出结果:"; s
End Sub
Private Sub Form_Load()
Text1 = "ABCD"
Command1.Caption = "反向输出"
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询