vb6 - String(33, 0) in VB 6.0 and equivalent in C# -
what meaning of username = string(33, 0)
in vb 6.0 , equivalent in c#.
please i'm getting error while converting vb 6.0 code c#.
thanks in advance.
string
in vb6 function returns string containing repeating character string of length specified.
string(number,character)
example:
strtest = string(5, "a") ' strtest = "aaaaa" strtest = string(5, 97) ' strtest = "aaaaa" (97 ascii code "a")
in case, string(33,0)
return string containing 33 null characters.
the equivalent in c# be
username = new string('\0', 33);
Comments
Post a Comment