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:
    195
  • Date Created
    Friday, January 11, 2013
  • Last Updated
    Friday, January 11, 2013
  • This Article Has been Viewed
    1533 times
  • Short Desc
    When using DIMs in your scripts, you may sometimes over use the letter assigned to the DIM, and this will cause the Illegal assignment to accure.
  • Details
    When you are using an array, sometimes you can over use the characters more than once, there for, you receive the following error.

     

    Microsoft VBScript runtime error '800a01f5'
    Illegal assignment: 'I'
    line 73.
  • Recreate Issue
    To reproduce this issue:

    <%
    dim I
    Set I = Server.CreateObject("Scripting.Dictionary")
    %>


    And somewhere in your page, you are also using the letter "I", so this will create the error.
  • Resolve Issue
    To Resolve this issue:

    <%
    dim z
    Set z = Server.CreateObject("Scripting.Dictionary")
    %>


    Changing the letter to something that is not used, will allow the script to run without issue.