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 runtime error '800a01f5' Illegal assignment: 'I'

  • 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:
    124
  • Date Created
    Wednesday, March 23, 2011
  • This Article Has been Viewed
    3104 times
  • Short Desc
    When creating Variables, make sure that you do not try to reuse a variable after it id removed.
  • Details
    When creating variable and assigning them their properties, you may reuse without know that same variable, and this will cause the following error.

     
    Microsoft VBScript runtime error '800a01f5'
    Illegal assignment: 'I'
    /Page.asp, line 222

  • Recreate Issue
    To recreate this issue.

    <%
    i = 1
    %>


    In the above example, we have assigned the I once in our page, and are trying to assign it again, thus giving us this error.
  • Resolve Issue
    To resolve this issue:

    First create your Variable

    <%
    i = 1
    %>


    Now, we are utilizing the I so we can only use it within the pattern.
    Now, when we need to use a variable in another section of the page.
    Create a new variable

    <%
    z = 1
    %>

    In the above example, we have created another variable with the name of Z