VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Read character by character in a string.

by aot2002 jasonb (1 Submission)
Category: String Manipulation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sat 21st December 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Read character by character in a string.

Rate Read character by character in a string.



mystring ="hello"

dim counter as long
dim mystring as string
lengthofstring = Len(mystring)
If lengthofstring > 0 Then
For counter = 1 To lengthofstring
character1 = Mid(mystring, counter, 1)
MsgBox character1
Next counter
else
msgbox "please enter a string first"
end if


Download this snippet    Add to My Saved Code

Read character by character in a string. Comments

No comments have been posted about Read character by character in a string.. Why not be the first to post a comment about Read character by character in a string..

Post your comment

Subject:
Message:
0/1000 characters