Append

From OxeyeWiki

Jump to: navigation, search

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