The readers of my articles on several forums asks questions regarding something or the other and I do answer them promptly. However I feel the answers should be shared among a larger group of people. I think this blog will make this possible.
Wednesday, June 4, 2008
I need to convert a string into a Byte Array. How do I code it in Visual Studio?
Visual Studio has Microsoft Visual Basic already referenced and you can use the following code. Of course you need to add an imports statement as shown. This code was tested using Visual Studio 2008.
In this code I am converting the string "Welcome" to a Byte array and writing it to the immediate window.
No comments:
Post a Comment