Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert String to Integer

Status
Not open for further replies.

Coogan

Programmer
Jun 21, 2004
38
GB
Hi Guys,

Can some one tell me how to convert an Integer to a String.

Basically i used the parseInt() command to convert a string to an integer so that I could add a value to it and I now need to change it back to a string so that I can use it as a 'select' option value.

Thanks

Martin
 
myNum = myNum + ''

boyd.gif

craig1442@mchsi.com
"Whom computers would destroy, they must first drive mad." - Anon​
 
Hi Craig,

I need to convert a Integer to String.

Thanks

Martin
 
I'm not sure I follow why the above won't work...

...if you prefer use the toString function.

a = myVar.toString();

boyd.gif

craig1442@mchsi.com
"Whom computers would destroy, they must first drive mad." - Anon​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top