hi Thanks its working now with MathTool ----- Original Message ----- From: "Christoph Reck" <[EMAIL PROTECTED]> To: "Velocity Users List" <velocity-user@jakarta.apache.org> Sent: Thursday, March 24, 2005 1:33 PM Subject: Re: How to convert string in int
> 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) ) > > Cheers, > :) Christoph > > > tarun Narang wrote: > > 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("countRow")) > > Thanks > > Tarun > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]