From my understanding, this code:
Microsoft.VisualBasic.StrDup(3, "123")
should return 123123123. Instead it returns 111, as if it’s working with a wrong overload of StrDup (one that accepts char). If this is by-design, is there any built-in function that would do the same?
According to MSDN,
StrDuppicks only the first character, regardless if you specify aCharor aString:The best way to do
StrDupfor strings is this: