Join: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
== Related Items == | == Related Items == | ||
[[split| | [[split|Split]] | ||
[[Category:Language Reference]] | [[Category:Language Reference]] |
Revision as of 01:13, 24 August 2012
Join(stringarray[, delimiter])
Description
Join returns a string that is created by concatenating a list of strings with an optional delimit character. The required argument, stringarray, is a one-dimensional array of strings. The optional argument, delimiter, is a string expression whose first character is used to separate the strings joined from stringarray; if no string is provided a space character (" ") is used by default. To concantenate with no delimiters, use an empty space ("") as the delimiter.
Example
Rem Join Example 'Join concatenates strings Dim Words, Letters Words = Array("Hello", "World") Letters = Array("D", "a", "l", "l", "a","s") Print Join(Words) & "!" Print Join(Letters, "_")
Output
Hello World! Dallas