API:SplitArgString

Splits a string where whitespace occure.

t, num = SplitArgString(str)

Arguments

 * str
 * string - String to split

Return value

 * t
 * table - a table of elements (pairs of index and value)
 * num
 * number - number of splited elements

Example
local t, num = SplitArgString("Hello World!\tTab\nNew line");

-- t has 5 elements: 'Hello', 'World!', 'Tab', 'New', 'line' for i, v in ipairs(t) do DEFAULT_CHAT_FRAME:AddMessage(tostring(i) .. " " .. v); end