0

Hey guys, quick questions!

1- How can I check the size of a variable? Size in bytes, not length. (;
2- What data can be stored into byte variables? And what the maxium size of the variable?
3- How do I store data inside a byte variable?

Thats all for now. Thanks!

2
Contributors
5
Replies
6
Views
6 Years
Discussion Span
Last Post by RenanLazarotto
0

If you need to get the byte count for a String, see if this helps.

Dim sTemp As String = "GetByteCount"
        MsgBox(System.Text.Encoding.UTF8.GetByteCount(sTemp))

Note: There are other types of Encoding other than UTF8.

Edited by codeorder: n/a

0

I'll try it now.

I have one more question, is not exactly the same subject, but its is very near to it. I want to let the user how many variables he will need, and I also need that he controls the variables sizes (in length now). But all variables will have the same size.

This can be done using an array, right?

0

More than likely using a For/Next loop inside another.
If you still have questions regarding this new issue, start a new thread.

Edited by codeorder: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.