Append

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
Jeb (Talk | contribs)
(Created page with '{{GUIMethod | WChar:append(value, ...) | Appends data to the string. | {{MethodParam|value|An integer, a number, a string or another WChar object|The data to append. The paramete...')

Latest revision as of 22:36, 8 March 2009

WChar:append(value, ...)

Appends data to the string.

Parameter Expected Type Description
value An integer, a number, a string or another WChar object The data to append. The parameter can be of different types, and will be converted to the corresponding Unicode string.
... Same as above You may add several parameters in the call to this function. They will be appended after each other, with a space between them.
Returns

Returns nothing.

Daisymoon GUI Lib

Example

   local age = 32
   local text = WChar("Hello ")
   text:append("John ")
   text:append(WChar("Smith, "))
   text:append(age)
   text:append(" years old")

   print(text:toString()) -- Outputs "Hello John Smith, 32 years old"
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox