在文本框Text1中输入一个任意长度的字符串,

2024-12-23 14:02:14
推荐回答(1个)
回答1:

建立一个text1,一个command1,一个label1
程序如下:
Dim st1 As String, st2 As String
Dim i As Integer

Private Sub Command1_Click()
st1 = Text1
st2 = ""
For i = 1 To Len(st1)
st2 = Mid(st1, i, 1) + st2
Next
Label1.Caption = st2
End Sub

已经运行过,没问题!