Subroutine call generated error : Microsoft VBScript runtime error ' 800a000d' Type mismatch

Results 1 to 2 of 2

Thread: Subroutine call generated error : Microsoft VBScript runtime error ' 800a000d' Type mismatch

  1. #1
    Sham Sunder Gautam Guest

    Default Subroutine call generated error : Microsoft VBScript runtime error ' 800a000d' Type mismatch

    Dear sir,<BR> I called a simple subroutine in an ASP application but it is not being executed ,you please tell me that can I call a subroutine in this way (the code is):<BR><BR>&#060;%@ LANGUAGE=VBSCRIPT &#037;&#062;<BR>&#060;SCRIPT language=vbscript><BR> sub test()<BR> msgbox "In sub test"<BR> end sub<BR>&#060;/SCRIPT> <BR>&#060;HTML><BR>&#060;HEAD><BR>&#060;META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1252"><BR>&#060;TITLE>TEST FORM&#060;/TITLE><BR>&#060;% call test()&#037;&#062;<BR>&#060;/HEAD><BR>&#060;/HTML><BR><BR><BR>Reply ASAP<BR>Sham S. Gautam<BR>

  2. #2
    Daniel Root Guest

    Default RE: Subroutine call generated error : Microsoft VBScript runtime error ' 800a000d' Type mism

    The code above won&#039t work because the &#060;%asp&#037;&#062; code is processed on the server, while the &#060;SCRIPT> code is processed on the client. In short, the two, while the same language are essentially two different programs. Here&#039s code to do what you want, though: <BR><BR>&#060;%@ LANGUAGE=VBSCRIPT &#037;&#062;<BR>&#060;HTML><BR>&#060;HEAD><BR>&#06 0;META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1252"><BR>&#060;TITLE>TEST FORM&#060;/TITLE><BR>&#060;% <BR>SUB Test()<BR>Response.write "&#060;SCRIPT LANGUAGE=""VBSCRIPT"">msgbox ""test""&#060;/SCRIPT>"<BR>End SUB<BR><BR>call test()&#037;&#062;<BR>&#060;/HEAD><BR>&#060;/HTML><BR><BR>This essentially uses the asp code to write the client-side script to display the message box. <BR><BR>-D. Root

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •