loop in a textbox

  • Thread starter Thread starter libby
  • Start date Start date
L

libby

Hi

Is there any way of looping through each character in a
text box?

I've got as far as

Dim i as integer

For i = 0 to Textbox1.textlength


next

but I'm not sure how to reference a character in the
textbox.

Thanks
 
For i = 1 To Len(Textbox1.Text)
thisChar = Mid(TextBox1.Text,i,1)
... now you can process thisChar
Next i

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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

Back
Top