Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Array Problem

Options
  • 19-03-2004 12:39pm
    #1
    Closed Accounts Posts: 3


    Im having a problem reading from my array(through a function) I keep getting an error message saying ...is null or not an object. The function works fine and prints out to where i want it to but when i ask it to access the array it throws up this error. Can any of u clever people help me (like Matfin). Here is my code#

    //array
    <script type = "text/javascript">
    var recordm = new array(10)
    recordm[0] ="9.79";

    //function
    <script>
    function rec()
    {
    document.rpc.wrspeed.value=(recordm[0]);
    }
    </script>

    Both are in the <body> of the program
    rpc is the name of the form
    wrspeed is where i want to write it to

    Any help muchos appreciated


Comments

  • Registered Users Posts: 19,396 ✭✭✭✭Karoma


    new Array - perhaps?

    shlap up the rest of the page and i'll have a look


  • Closed Accounts Posts: 3 AC208


    Yeah i was leaving out the capital cheers


  • Registered Users Posts: 19,396 ✭✭✭✭Karoma


    np :)


Advertisement