ToInteger
From OxeyeWiki
|
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()