Join Function


Join Function

Class

Microsoft.VisualBasic.Strings

Syntax

     Dim result As String = Join(sourceArray, [delimiter]) 


sourceArray (required; String or Object array)

Array with elements that are to be concatenated.


delimiter (optional; String)

String used to delimit the individual values in the new joined string. If omitted, the space character ("") is used. delimiter may be an empty string ("").

Description

The Join function concatenates an array of strings or string expressions into a delimited string using a specified delimiter.

Usage at a Glance

  • If you want to concatenate numeric or other nonstring values in sourceArray, use an Object array.

  • The delimiter can be of any length. Include a zero-length string to concatenate the array elements together without any delimiter.

See Also

Split 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