Help with code error please, urgent - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Help with code error please, urgent

I am getting a vbscript run time error 800a009 subscript out of range '[number7]'. I bought the program and cannot figure out how to fix this. It refers to this piece of code

<%dim pstoty
dim pstype(6)
pstoty=objRS1("property")

pstype(pstoty)="selected"
%>

>APARTMENT
>VILLA
>VILLA
>RESTAURANT
>HOTEL
>BAR
>BUSINESS
>LAND
>PROJECT

It runs fine up to 6 and then I get the error.

This is what is on the page it is supposed to work on, but I cant see why it doesnt work



Select to type of property such as Apartment, Villa, Land.



 





Any assistance would be very much appreciated as I am totally stuck and going nuts.

Many thanks

Cassie

Comments

  • casio-games.tkcasio-games.tk Posts: 35Member
    [b][red]This message was edited by casio-games.tk at 2006-5-13 12:35:31[/red][/b][hr]
    : I am getting a vbscript run time error 800a009 subscript out of range '[number7]'. I bought the program and cannot figure out how to fix this. It refers to this piece of code
    :
    : <%dim pstoty
    : dim pstype(6)
    : pstoty=objRS1("property")
    :
    : pstype(pstoty)="selected"
    : %>
    :
    : >APARTMENT
    : >VILLA
    : >VILLA
    : >RESTAURANT
    : >HOTEL
    : >BAR
    : >BUSINESS
    : >LAND
    : >PROJECT
    :
    : It runs fine up to 6 and then I get the error.
    :
    : This is what is on the page it is supposed to work on, but I cant see why it doesnt work
    :
    :
    : Select to type of property such as Apartment, Villa, Land.
    :
    :
    :

    :  
    :
    :
    :
    :

    :
    : Any assistance would be very much appreciated as I am totally stuck and going nuts.
    :
    : Many thanks
    :
    : Cassie
    :


    I dont know this language at all ;-) but i think the problem is :
    [code]<%dim pstoty
    dim pstype(6)
    pstoty=objRS1("property")

    pstype(pstoty)="selected"
    %>
    [/code]

    dim pstype(6) should set set the dimension of "pstype" to 6, and thats propably why it stops working at 7. Try to change it to dim pstype(8):

    [code]<%dim pstoty
    dim pstype(8)
    pstoty=objRS1("property")

    pstype(pstoty)="selected"
    %>
    [/code]

    If you have bought this program, it is REALLY bad with such a simple but fatal error.
    [hr][hr]
    Don't write pH, write Ph!





  • Confused19Confused19 Posts: 3Member
    : [b][red]This message was edited by casio-games.tk at 2006-5-13 12:35:31[/red][/b][hr]
    : : I am getting a vbscript run time error 800a009 subscript out of range '[number7]'. I bought the program and cannot figure out how to fix this. It refers to this piece of code
    : :
    : : <%dim pstoty
    : : dim pstype(6)
    : : pstoty=objRS1("property")
    : :
    : : pstype(pstoty)="selected"
    : : %>
    : :
    : : >APARTMENT
    : : >VILLA
    : : >VILLA
    : : >RESTAURANT
    : : >HOTEL
    : : >BAR
    : : >BUSINESS
    : : >LAND
    : : >PROJECT
    : :
    : : It runs fine up to 6 and then I get the error.
    : :
    : : This is what is on the page it is supposed to work on, but I cant see why it doesnt work
    : :
    : :
    : : Select to type of property such as Apartment, Villa, Land.
    : :
    : :
    : :

    : :  
    : :
    : :
    : :
    : :

    : :
    : : Any assistance would be very much appreciated as I am totally stuck and going nuts.
    : :
    : : Many thanks
    : :
    : : Cassie
    : :
    :
    :
    : I dont know this language at all ;-) but i think the problem is :
    : [code]<%dim pstoty
    : dim pstype(6)
    : pstoty=objRS1("property")
    :
    : pstype(pstoty)="selected"
    : %>
    : [/code]
    :
    : dim pstype(6) should set set the dimension of "pstype" to 6, and thats propably why it stops working at 7. Try to change it to dim pstype(8):
    :
    : [code]<%dim pstoty
    : dim pstype(8)
    : pstoty=objRS1("property")
    :
    : pstype(pstoty)="selected"
    : %>
    : [/code]
    :
    : If you have bought this program, it is REALLY bad with such a simple but fatal error.
    : [hr][hr]
    : Don't write pH, write Ph!
    :
    :
    :
    :
    :
    :

  • Confused19Confused19 Posts: 3Member
    Hi, many many thanks. You have saved my hair, a lot of which was pulled out. What a simple thing when you see it to cause such a problem. You are right about the program have had so many problems with it, most of which I figured out eventually but couldnt figure this one out. Just one more prob left and then I will be able to work with it ok.

    Again, many many thanks

    Cassie




    : : [b][red]This message was edited by casio-games.tk at 2006-5-13 12:35:31[/red][/b][hr]
    : : : I am getting a vbscript run time error 800a009 subscript out of range '[number7]'. I bought the program and cannot figure out how to fix this. It refers to this piece of code
    : : :
    : : : <%dim pstoty
    : : : dim pstype(6)
    : : : pstoty=objRS1("property")
    : : :
    : : : pstype(pstoty)="selected"
    : : : %>
    : : :
    : : : >APARTMENT
    : : : >VILLA
    : : : >VILLA
    : : : >RESTAURANT
    : : : >HOTEL
    : : : >BAR
    : : : >BUSINESS
    : : : >LAND
    : : : >PROJECT
    : : :
    : : : It runs fine up to 6 and then I get the error.
    : : :
    : : : This is what is on the page it is supposed to work on, but I cant see why it doesnt work
    : : :
    : : :
    : : : Select to type of property such as Apartment, Villa, Land.
    : : :
    : : :
    : : :

    : : :  
    : : :
    : : :
    : : :
    : : :

    : : :
    : : : Any assistance would be very much appreciated as I am totally stuck and going nuts.
    : : :
    : : : Many thanks
    : : :
    : : : Cassie
    : : :
    : :
    : :
    : : I dont know this language at all ;-) but i think the problem is :
    : : [code]<%dim pstoty
    : : dim pstype(6)
    : : pstoty=objRS1("property")
    : :
    : : pstype(pstoty)="selected"
    : : %>
    : : [/code]
    : :
    : : dim pstype(6) should set set the dimension of "pstype" to 6, and thats propably why it stops working at 7. Try to change it to dim pstype(8):
    : :
    : : [code]<%dim pstoty
    : : dim pstype(8)
    : : pstoty=objRS1("property")
    : :
    : : pstype(pstoty)="selected"
    : : %>
    : : [/code]
    : :
    : : If you have bought this program, it is REALLY bad with such a simple but fatal error.
    : : [hr][hr]
    : : Don't write pH, write Ph!
    : :
    : :
    : :
    : :
    : :
    : :
    :
    :

Sign In or Register to comment.