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.
  • Breadrumbs:
  • Microsoft VBScript compilation (0x800A0400) Expected statement

  • CFF Knowledge Base - Share With Facebook CFF Knowledge Base - Share on Twitter CFF Knowledge Base - Share on Reddit CFF Knowledge Base - Share on Digg It CFF Knowledge Base - Share on Stumble Upon It CFF Knowledge Base - Share on Delicious
    Share With Friends (Updated 6-8-2010)
  • Article ID:
    27
  • Date Created
    Wednesday, October 6, 2010
  • Last Updated
    Saturday, December 25, 2010
  • This Article Has been Viewed
    3281 times
  • Short Desc
    When writing your IF statement, make sure that you properly write our all variables to make the statement work properly, if not, you will get a pected statement error.
  • Details
    When you are writing out your IF Statement, make sure that you write is correctly and that it holds all the proper information that is needed in order to carry out what ever function that you need it to.
    Issue #1:
     
    Microsoft VBScript compilation (0x800A0400)
    Expected statement
    /page.asp, line 80, column 5
    else then
    ----^


    Issue #2:
    This is caused when you use an END IF and there if no beginning IF Statement.
     
    Microsoft VBScript compilation (0x800A0400)
    Expected statement
    /AdminComs.asp, line 106
    end if
  • Recreate Issue
    To recreate this issue.
    Issue #1:
    <%
    if then
    response.write"Hello I am here"
    end if
    %>

    The above Issue we forgot to add in a value between our IF and THEN

    Issue #2:
    <%
    response.write"Hello I am here"
    end if
    %>

    In the above, we do not have our IF Statement, so the END IF gets the errors.


  • Resolve Issue
    To correctly write out an IF statement, make sure that you have all available information ready for the process to work.
    Issue #1: & Issue #2

    <%
    if getType="MyType" then
    response.write"Hello I am here"
    end if
    %>


    Both Issue #1 , we have the getType="MyType" which was left out of the original IF Statment. And for Issue #2, we have the beginning IF Statement.