April 2002
Intermediate to advanced
688 pages
19h 51m
English
StrDup Function
Microsoft.VisualBasic.Strings
StrDup(number,character)number (required; Integer)The number of times to duplicate the first character in string
character (required; String, Char, or Object containing a String or Char)The String or Char whose first character is to be duplicated
A String containing the character duplicated the specified number of times
Returns a string that consists of the first character of
character duplicated
number times
The line:
MsgBox(StrDup(Number:=5, Character:="ABC"))
displays "AAAAA".
The StrDup function is new to VB.NET. It appears in part to be a replacement for the VB 6 String function.
Read now
Unlock full access