ToInteger

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
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 ...')

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.

Daisymoon GUI Lib

Example

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