求vb程序 任意输入5个字母,逆向输出 ,输入窗口为text1,输出窗口为text2,程序编辑在command里

[复制链接]
查看11 | 回复2 | 2010-12-20 16:42:05 | 显示全部楼层 |阅读模式
并要求设置text2不可编辑

回复

使用道具 举报

千问 | 2010-12-20 16:42:05 | 显示全部楼层
Private Sub Command1_Click()Dim i As IntegerText2.Text = ""For i = Len(Text1.Text) To 1 Step -1 Text2.Text = Text2.Text & Mid(Text1.Text, i, 1)Next iEnd SubPrivate Sub Form_Load() Text2.Enabled = FalseEnd Sub
回复

使用道具 举报

千问 | 2010-12-20 16:42:05 | 显示全部楼层
请等下哦。。。简单的代码就这点:Private Sub Command1_Click()
Dim strings As String
strings = Text1.Text
For i = Len(strings) To 1 Step -1
Text2.Text = Text2.Text & Mi
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行