I have a number passed by a form.<BR>The number is now a string and I need to convert it to a int.<BR>How can I convert a string into an int?
Or better yet....CLng(string)
for the cint and not clng<BR><BR>you survived.<BR><BR>:)<BR><BR>Brain Power.
Cint was the right answer if he was speaking specifically about the int datatype. <BR><BR>However, if all he wants is an integer....Then yes, CLng is the only way to go.
I was jsut responding to your reply...so i realy would not know what the "right" answer would be now would i<BR><BR>Brain Power.
Depending on how idiot proof the form needs to be, you might also check the string with isNumeric(string) before attempting to convert it.