ToInteger
From OxeyeWiki
(Difference between revisions)
Jeb (Talk | contribs)
(Created page with '{{GUIMethod | WChar:toInteger() | Converts the string object to an integer, if possible. | {{NoParams}} | Returns the integer value of the text object, or 0 if it's not possible ...')
(Created page with '{{GUIMethod | WChar:toInteger() | Converts the string object to an integer, if possible. | {{NoParams}} | Returns the integer value of the text object, or 0 if it's not possible ...')
Latest revision as of 23:13, 8 March 2009
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. |
Example
local text = WChar("32") local age = text:toInteger()