CFF KB - Carrz-Fox-Fire Promotions Knowledge Base
CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.Knowledge Base
- Breadrumbs:
Microsoft VBScript compilation (0x800A03F9) Expected 'Then'
- Article ID:
23 - Date Created
Tuesday, October 5, 2010 - Last Updated
Wednesday, November 17, 2010 - This Article Has been Viewed
3847 times - Short Desc
When writing an IF Statement in ASP Classic, you forget to add the THEN to the end of the statements line. - Details
When you write your IF statement, and you forget to add in the THEN at the end, you will receive this error.
Microsoft VBScript compilation (0x800A03F9)
Expected 'Then'
Header_Menu.asp, line 41, column 24
if strusername="myname"
-----------------------^ - Recreate Issue
To recreate this issue.
<%
if strusername="myname"
response.write"Hello myname, hope you enjoy your stay"
end if
%> - Resolve Issue
To resolve the issue, make sure that when you have an IF statement, you have it THEN.
<%
if strusername="myname" then
response.write"Hello myname, hope you enjoy your stay"
end if
%>
Share With Friends (Updated 6-8-2010)
Recent Articles
All Topics
- Coming Soon - Knowledge Exchange
Trending Articles
- Microsoft VBScript runtime error '800a0046' Permission denied FileSystemObject 24695
- Microsoft OLE DB Provider for SQL Server error '80040e57' String or binary data would be truncated. or The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data. 21297
- ADODB.Parameters error '800a0e7c' Parameter object is improperly defined 19544
- After Effects warning: Audio conforming failed for the following file .cfa. Perhaps due to disk space 17785
- The backup set holds a backup of a database other than the existing 16825