August 2001
Intermediate to advanced
656 pages
18h 5m
English
StrDup Function
Microsoft.VisualBasic.Strings
StrDup(number,character)number
Use: Required
Data Type: Integer
The number of times to duplicate the first character in string
character
Use: Required
Data Type: 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
String function.
Read now
Unlock full access