What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] 'undefined' is null or not an object.

[Help] 'undefined' is null or not an object.
Author: Message:
pollolibredegrasa
Full Member
***

Avatar
formerly fatfreechicken

Posts: 483
Reputation: 34
35 / Male / Flag
Joined: May 2005
RE: [Help] 'undefined' is null or not an object.
quote:
Originally posted by Timma
code:
for (i = 0; i <= textray.length; i++){

Change that line to either
code:
for (i = 0; i < textray.length; i++){
or
code:
for (i = 0; i <= textray.length-1; i++){

Array.length gives the number of items +1, so when it reaches this number in the loop you've come to an array item that doesn't exist, hence the 'undefined' error. At least, that's my understanding of it :P

Hope this helps :)
;p

[Image: chickennana.gif] Vaccy is my thin twin! [Image: chickennana.gif]
09-15-2008 10:34 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] 'undefined' is null or not an object. - by Timma on 09-14-2008 at 04:22 AM
RE: [Help] 'undefined' is null or not an object. - by Matti on 09-14-2008 at 01:30 PM
RE: [Help] 'undefined' is null or not an object. - by Timma on 09-15-2008 at 09:31 AM
RE: [Help] 'undefined' is null or not an object. - by pollolibredegrasa on 09-15-2008 at 10:34 AM
RE: [Help] 'undefined' is null or not an object. - by Jesus on 09-15-2008 at 11:20 AM
RE: [Help] 'undefined' is null or not an object. - by Timma on 09-16-2008 at 05:51 AM
RE: [Help] 'undefined' is null or not an object. - by Jesus on 09-16-2008 at 09:34 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On