I've always thought you could only use character arrays, but now I'm seeing a lot of string data types being passed to my methods and subs. What are they, and how do I use them?
Printable View
I've always thought you could only use character arrays, but now I'm seeing a lot of string data types being passed to my methods and subs. What are they, and how do I use them?
It's the standard library string class. It's been mentioned many times around the forum, but a search on Google will point you in the right direction :)
Great, thanks!
OLE strings (VB strings) are BSTR. They are not string class.
They consist of a descriptor (long with the length of the string in bytes) before a character data area in memory. These can contain multiple null characters, which other strings cannot have in them.