String Handling

G

Guest

I need to work with a string character by character. Pick off a character,
determine it's ASCII code (using ASC command) , perform some processing, then
move to the next character. I know how to do this in C and may develop this
routine in C but for simplicity sake I would prefer to do everything in VBA.

My problem is moving character by character in the string.

Any help will be appreciated!
 
A

Allen Browne

Dim i As Integer
For i = 1 to Len(MyString)
Debug.Print Asc(Mid(MyString, i, 1))
Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top