Sep 4, 2001 #1 Gti Programmer Jul 23, 2001 99 PT I have a string and i want to run the string schar by char. (e.g String -> ABCDEFGHIJKLMNOP I want to see de first char ( A ) the next char ..... How can i do it? Tkx ;-)
I have a string and i want to run the string schar by char. (e.g String -> ABCDEFGHIJKLMNOP I want to see de first char ( A ) the next char ..... How can i do it? Tkx ;-)
Sep 4, 2001 #2 Chance1234 IS-IT--Management Jul 25, 2001 7,871 US dim str as string dim x str = "ABCDEFGH" for x = 1 to 8 debug.print left(str,x) next Upvote 0 Downvote
Sep 4, 2001 #3 nickjar2 Programmer Jun 20, 2001 778 US Gti, This should work: Dim s As String Dim iLen As Integer Dim iCount As Integer s = "abcdefg" iLen = Len(s) For iCount = 1 To iLen MsgBox Mid$(s, iCount, 1) Next iCount Upvote 0 Downvote
Gti, This should work: Dim s As String Dim iLen As Integer Dim iCount As Integer s = "abcdefg" iLen = Len(s) For iCount = 1 To iLen MsgBox Mid$(s, iCount, 1) Next iCount