Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Split into single letters

Status
Not open for further replies.

protectorfeelgood

Technical User
Nov 10, 2003
5
NO
Hi,

I want to split a sentence from an inputbox into single letters,How to do this?


Thanx in advance
 
there is a split command but you need to give it a delimiter. not sure how you do this using the split command. you can take the sentance and throw it into a veriable and then left(the veriable,1) and throw this into an array or something.
 
The TextStream object will allow you to read a specific number of characters.

txtChar = object.read(1)

This should do the trick.

Dana Hallenbeck
 
strX = "my old mans a dustman"
For i = 1 To Len(strX)
Msgbox Mid(strX, i, 1)
Next

'i think that should work
'i am sure there are million ways to do it,
'i think thats one of them ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top