What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Error on length

Error on length
Author: Message:
SnuZZer
Full Member
***

Avatar

Posts: 114
32 / Male / Flag
Joined: Jun 2006
O.P. Error on length
Hey.

Here I am - again. I don't hope, you feel like I'm spamming the forum or so. The other way around, you choose yourself, if you wanna answer or not.

Anyway.

There's not that much to say. I have the following code:

quote:
function OnWinEvent_LstViewDblClicked(Wnd, Id, Chosen)
{
    var ShowQuote = MsgPlus.CreateWnd("ShowQuote.xml", "WinShow");
    var Breaks = Wnd.LstView_GetItemText("ListView", Chosen, 1).split("\\n");
   
    var LongestBreak = 0;
   
    for(i=0;i<=Breaks.length;i++)
    {
        Debug.Trace(Breaks[i]);
       
        if(LongestBreak < Breaks[i].length)
        {
            LongestBreak = Breaks[i].length;
        }
    }
   
    var Height = 1 * Breaks.length * 11 + 96;
    var Width = 1 * 50 * 5;
   
    ShowQuote.SetControlText("TxtQuote", Wnd.LstView_GetItemText("ListView", Chosen, 1).replace(/\\n/gi, "\r"));
    ShowQuote = Interop.Call("user32.dll", "SetWindowPos", ShowQuote.Handle, 0, 0, 0, Width, Height, 18);
}

And it gives me this error:
quote:
Function called: OnEvent_Initialize
Function called: OnWinEvent_LstViewDblClicked
This neither.
You are right.
It suxx!

Error: 'length' er null eller ikke et objekt (code: -2146823281)
       File: WoWForge Quotes.js. Line: 77.
Function OnWinEvent_LstViewDblClicked returned an error. Code: -2147352567

As you might have figured out, the item, I'm doubleclicking in the list has the following value:
quote:
This neither.\nYou are right.\nIt suxx!

I'm getting my data from this XML-document:
http://www.snuzzer.dk/wowforge/admin-msgplus-xml.php


Please ask, if there's something you don't understand.
07-16-2008 02:07 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Error on length - by SnuZZer on 07-16-2008 at 02:07 PM
RE: Error on length - by Spunky on 07-16-2008 at 03:05 PM
RE: RE: Error on length - by SnuZZer on 07-16-2008 at 03:18 PM
RE: Error on length - by Mnjul on 07-16-2008 at 03:28 PM
RE: RE: Error on length - by SnuZZer on 07-16-2008 at 03:41 PM


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