PDA

View Full Version : Parse Text to Number


papicino
05-05-2005, 03:13 AM
Hi @ all ,

my problem ist that i have a window with 2 editext
in it and a button and want to shoe the result of
the two numbers i input in another window.
How do i do this because when i input 4 and 6 for example the result is 46. How do i parse the strings to numbers in lazlo..
thx 4 support
greetz papicino

ambaker
05-05-2005, 04:23 AM
I've been using parseInt()

papicino
05-05-2005, 05:56 AM
Thx ambaker..

one more question to this. why can't i find the parseInt()-method in the lazlo-reference ??
greetz

ambaker
05-05-2005, 06:08 AM
I knew of parseInt() because of previous JavaScript experience, but I was just able to find a reference to it on this page:

http://www.laszlosystems.com/lps-3.0/docs/guide/ecmascript-and-lzx.html