WoW:API strjoin: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Reformatted the page to the current boilerplate format.)
(cat)
Line 1: Line 1:
{{wowapi}}
Joins strings together with a delimiter. (An alias with string.join)
Joins strings together with a delimiter. (An alias with string.join)
  local joinedString = strjoin(delimiter, string, string,...)
  local joinedString = strjoin(delimiter, string, string,...)

Revision as of 20:38, 13 June 2007

WoW API < strjoin

Joins strings together with a delimiter. (An alias with string.join)

local joinedString = strjoin(delimiter, string, string,...)


Arguments

("delimiter", "string1", "string2",...)
delimiter
String - The delimiter to use between each string being joined.
string1
String - The first string being joined.
string2
String - The second string being joined.


Returns

joinedString
String - A string containing all the string arguments with the delimiter between each one.


Example

a = strjoin("/", "HE", "LL", "O");
SendChatMessage(a, "say");

Result

HE/LL/O