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

VBScript Error >;0(

Status
Not open for further replies.

GDX

Programmer
Jun 4, 2000
186
0
0
US
I have no idea why im getting this error all im trying to do is create a sub routine and call it later on....this is what i have


<script language=&quot;VBScript&quot;>
Sub WriteInfoz ()
response.write &quot;$%#$%#$%DFDFGD&quot;
End Sub
</script>

i Call it later on in the code using Call WriteInfoz() but i get this error...

Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'WriteInfoz' Gordon R. Durgha
gd@vslink.net
 
Don't use parenthesis when calling your sub. VbScript doesn't like them.

:)
Paul Prewett

 
Hi

Even If you use parenthesis no error will be thrown. Your code is absolutely correct. I think you would have passed some parameters when you're calling the procedure. Try calling the procedure with no parameters, and if you're still getting the error, post it with the configuration of your system.


regards

srikanth
 
I think that you are trying to use server-side syntax on client-side code. Try using
Code:
document.write(&quot;whatever&quot;)
instead of response.write and see if that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top