想鸟一样飞翔

专注于php开发。对c++也很有兴趣!!!

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
Dim str As String
Dim i
Dim charPra As String
str = Trim(Text1.Text)
For i = 1 To Len(str)
   If Asc(Left(str, 1)) < 0 Then
     'MsgBox Left(str, 1)
      Text1.Text = ""
      Text1.SelStart = 0
      Text1.SelLength = 10
      Cancel = True

   End If
str = Mid(str, 2)
Next i
posted on 2007-10-07 21:31  redfox  阅读(533)  评论(0编辑  收藏  举报