ToInteger

From OxeyeWiki

Jump to: navigation, search

WChar:toInteger()

Converts the string object to an integer, if possible.

Parameter Expected Type Description
No parameters
Returns

Returns the integer value of the text object, or 0 if it's not possible to convert the object to an integer.

Daisymoon GUI Lib

Example

   local text = WChar("32")
   local age = text:toInteger()
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox