hi
Thanks its working now with MathTool
- Original Message -
From: "Christoph Reck" <[EMAIL PROTECTED]>
To: "Velocity Users List"
Sent: Thursday, March 24, 2005 1:33 PM
Subject: Re: How to convert string in int
> Hi,
>
> have you tried the Integer clas
Hi,
have you tried the Integer class methods:
## create an integer instance to be used as a tool
#set( $Integer = 0 )
##...
## retrieve your number string
#set( $countString = $!data.getRequest().getParameter("countRow") )
## convert it to an Integer
#set( $count = $Integer.parseInt($countString)
its working
but its not work with NumberTool its properly runs by using MathTool
Thanks
- Original Message -
From: "Mike Kienenberger" <[EMAIL PROTECTED]>
To: "Velocity Users List"
Cc: "Velocity Users List"
Sent: Wednesday, March 23, 2005 11:37 P
tarun Narang <[EMAIL PROTECTED]> wrote:
> Can anyone tell me that how the string can be converted into int in VTL
> I am recieving the value in count variable through getRequest but this
> variable has a string value and i have to add some int value in this count
> variable like $count + 5.
> #s
Hi
Can anyone tell me that how the string can be converted into int in VTL
I am recieving the value in count variable through getRequest but this
variable has a string value and i have to add some int value in this count
variable like $count + 5.
#set ($count = $!data.getRequest().getParameter("