|
-
Mar 23rd, 2003, 12:02 AM
#1
Thread Starter
Junior Member
Retrieving actual length of a buffer array
Howdy,
I've got an array with a fixed size ( Public Buffer(10000) As Byte )..How would I figure out how many characters are actually in it (.Length returns the size of the array).
Intrestingly enough, If i convert it to a string:
Dim str As String = System.Text.Encoding.ASCII.GetString(Buffer)
str.Length also returns the size of the buffer array, so I guess another question would be how to get the number of characters in that string.
Thanks in advance,
FireRabbit
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|