J
John Smith
Lets say I was given a Char array as:
Dim Arr(size) As Char
and this array holds a string which ends with a C-Style zero termination.
I want to make this into a String object and cut it off at the end.
So in C# I could do:
String str = (new String(arr)).Trim('\0');
However in VB '\0' is not understood.
Please advice.
-- John
Dim Arr(size) As Char
and this array holds a string which ends with a C-Style zero termination.
I want to make this into a String object and cut it off at the end.
So in C# I could do:
String str = (new String(arr)).Trim('\0');
However in VB '\0' is not understood.
Please advice.
-- John