If this is your first visit, be sure to
check out the
FAQ
by clicking the
link above. You may have to
register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Do you want each character's ascii value to be assigned to the corresponding array element? If yes, this is one way you can do it:
Code:
Dim s As String
Dim b() As Byte
s = "Hi babe"
ReDim b(1 To Len(s))
For i = 1 To Len(s)
b(i) = Asc(Mid(s, i, 1))
Debug.Print b(i)
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
Hey, thanx krtxmrtz.
Im doing it that way, but i have added -1 to len, because array begins from 0.
Everything works fine, but i still have problems with this.
Im using winsock to transfer files and when i save the file it is 1kb larger than original. It works fine, but it is larger, why is that. I thought im not converting correctly.
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
Advertiser Disclosure:
Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.