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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String to Variable

Status
Not open for further replies.

lumstar

Technical User
Jan 29, 2002
177
CA
Hey Guys, It's me again,

I read variables from a file which control the clip. One of these variables (named numdocs) is a user-defined integer between 0 and 10. I can read this variable and display it on the screen in a dynamic text box, however I cannot convert it to an numeric variable for use as a parameter. parsefloat(numdocs), parseint(numdocs) and Number(numdocs) do not seem to be working.... Pleas help!

Thanks in advance, Lumstar
______________________________________
And The Star Continues To Shine....
 
I cant see why number(numdocs) is not working. Can you post your code?
 
try parseInt("numdocs", 10)
the 10 to force a decimal response
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top