|
-
Apr 24th, 2010, 09:15 PM
#1
Thread Starter
New Member
[Solved] Mid() Problem
For some unknown reason I can't get the Mid() function working properly. I'm just trying to read each character, one by one, from a textbox but it's not working. Here's what I have:
vb Code:
For i = 0 To (Len(Text1.Text) - 1)
MsgBox (Mid$(Text1.Text, i, 1))
Next i
I get the error "Invalid Procedure Call or Argument" when I try to run it. Any ideas?
Last edited by pushad; Apr 24th, 2010 at 09:32 PM.
-
Apr 24th, 2010, 09:23 PM
#2
Re: Mid() Problem
Code:
For i = 1 To Len(Text1.Text)
MsgBox Mid$(Text1.Text, i, 1)
Next i
-
Apr 24th, 2010, 09:32 PM
#3
Thread Starter
New Member
Re: Mid() Problem
 Originally Posted by Edgemeal
Code:
For i = 1 To Len(Text1.Text)
MsgBox Mid$(Text1.Text, i, 1)
Next i
*facedesk*
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|