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 '800a0009' Subscript out of range

  • 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:
    105
  • Date Created
    Tuesday, February 22, 2011
  • This Article Has been Viewed
    4602 times
  • Short Desc
    When creating an Array, make sure that you provide the information that is needed in order for the Array to carry out its job.
  • Details
    When you are splitting an array and the valley is not available for the Array to split, then you will receive the following error.

     
    Microsoft VBScript runtime error '800a0009'
    Subscript out of range: '[number: 0]'
    /Properties.asp line 116


    This error means that you are not providing the numbers that are needed in order for the Array to carry out its job.
  • Recreate Issue
    To recreate this issue.

    Example:


    myImageDem = " "
    myImageAr = Split(myImageDem,"x")

    The above code will create the error because the myImageDem is empty, there is no value for it to return a results for.
  • Resolve Issue
    To correct this issue.

    The following Example will create a Proper Array


    myImageDem = "100x200"
    myImageAr = Split(myImageDem,"x")


    In the above example, we are passing the 100x200 Value into our Array.
    So the code will execute properly.