Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

Unexpected error line 5

$
0
0
I have inherited a ASP site using the old style ASP and only changed several lines in the form handler, but now I keep getting this error:
Microsoft VBScript compilation error '800a0401'

Expected end of statement

/sendmail/sendit_functions.asp, line 5

I have not altered that page at all so I am confused as to why it would say there is an error on that page.
The code in reference actually reads:
Code:

                execute "v" & Request.Form.Key(x) & " = " & "" & Request.Form.Item(x) & ""
The actual code in context is:
Code:

Sub GetFormVars()
        For x = 1 to Request.Form.Count
                execute "v" & Request.Form.Key(x) & " = " & "" & Request.Form.Item(x) & ""
        Next
End Sub


The odd part that I can't figure out is where did the "v" come from. As I see it that would be a string, but there is no reference to "v" on any other pages.

I have been studying this for hours and going through all the online information I could find as well as my copy of VBscript Programmer's Reference by Wrox it covers VBscript 5 so not sure how much help that has any chance of helping with this.

Thanks in advance to anyone able to shed light on this for me.

Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>