Reputation: 15389
I am going through some old VB6 code and I come across statements like -
TempArray() = StrConv(PassedString, vbFromUnicode)
What does this mean?
Upvotes: 4
Views: 7940
Reputation: 78185
It takes a unicode string (any string in VB is in Unicode) and converts it to a byte array, using the current system codepage for non-unicode programs.
Characters not found in that codepage are replaced with question marks (?
).
Upvotes: 7