loading
 
VB Script sqrt function
Aj from India  [3 posts]
15 year
The "sqrt" function in the VB script module works only with constants. When I gave a variable as the argument it says "Invalid procedure call or argument"
eg: "temp = sqrt (433)" works fine...
temp = sqrt ( myvariable ) gives error
Anonymous 15 year
try sqrt (cInt(myvarable)) it should be cint or clng depending on your var length
Aj from India  [3 posts] 15 year
Thanks.."cInt" works
Anonymous 15 year
Just FYI, Cint is no longer needed as this has been fixed in 2.1.1.1

STeven.

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index