StrDup Function


StrDup Function

Class

Microsoft.VisualBasic.Strings

Syntax

     Dim result As String = StrDup(number, character) 


number (required; Integer)

The number of times to duplicate the first character in a string.


character (required; String, Char, or Object)

The content with the first character that is to be duplicated. If the data type is Object, it must contain a String or Char value, and Object will be returned instead of String.

Description

The StrDup function returns a string that consists of the first character of character duplicated number times.

Version Differences

The StrDup function is new to .NET. It can be used as a partial replacement for the VB 6 String function.

See Also

Space Function




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net