|
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
|
|
|
Anonymous |
15 year
|
Just FYI, Cint is no longer needed as this has been fixed in 2.1.1.1
STeven.
|
|