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

Expected end of statement error

Status
Not open for further replies.

Ireland1978

Programmer
Sep 29, 2005
17
GB
Hi,

Can anyone see the problem with this line of code, I'm a beginner at ASP so haven't a clue!

Code:
var to_do = String(Request("to_do"));

I'm getting this error message:
Microsoft VBScript compilation error '800a0401'

Expected end of statement

/MyWeb/test.asp, line 9

var to_do = String(Request("to_do"));
------------------------------------^

Thanks
 
i think aq string() function requires two arguments...
something like String(number,character)...

not sure what you are trying to do here though...

-DNG
 
This is interesting:
Microsoft [!]VBScript[/!] compilation error '800a0401'

especially when looking at the formatting of your code

A smile is worth a thousand kind words. So smile, it's easy! :)
 

Ahh.. Chris.. you spoilt all the fun !

A smile is worth a thousand kind words. So smile, it's easy! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top