passing variables to a function. getting error:cannot use parenthesis when calling a sub.
Posted
by sushant
on Stack Overflow
See other posts from Stack Overflow
or by sushant
Published on 2010-04-07T07:43:39Z
Indexed on
2010/04/07
7:53 UTC
Read the original article
Hit count: 225
vbscript
x="D:\d"
y="ehgfh"
button onclick="zips (x,y)" id=button1 name=button1>clickme
function zips(x,y)
alert(y)
dim shell,z
z="c.bat " & x
set shell=createobject("wscript.shell")
shell.Run z, 1, true
shell.Run "a.bat", 1, true
set shell=nothing
end function
how to eliminate the error? any help is really appriciated.
© Stack Overflow or respective owner