I am new to VB. I am testing some old VB code. The code is as follows –
Public GlobalCommArea() As Byte
...
...
'GlobalCommArea is set to some value
Now, I want to see the contents of this GlobalCommArea variable. (By the way, is it a variable?)
So I tried
outputBox.Text = GlobalCommArea
But the outputBox (which is a textbox) didn’t show anything. What should I do to print the contents of GlobalCommArea into the textbox?
The Byte data type is an array of bytes actually. You need to convert it to a string.
Use this to convert it:
Depending on what’s stored in GlobalCommArea you may have to change the vbUnicode parameter.
Hope this helps