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

Script query
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Script query
You can do it that way using the Rich/EditControl or a ListBoxControl. The ListBoxControl would be a better method for this however for the Rich/EditControl you can read the string and split the string on \n which would then cause the string to be converted to an array where each line would be a slot in the array.

For instance
js code:
var str = 'this\nis\nsome\ntext';
Debug.Trace(str);
var array = str.split('\n');
Debug.Trace('the length of the array is: '+array.length);
for (var a in array) Debug.Trace('Array position ('+a+') contains the data: '+array[a]);
01-21-2009 03:24 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Script query - by djdannyp on 01-21-2009 at 02:25 PM
RE: Script query - by matty on 01-21-2009 at 03:24 PM
RE: Script query - by djdannyp on 01-21-2009 at 04:48 PM
RE: Script query - by Spunky on 01-21-2009 at 06:01 PM
RE: Script query - by djdannyp on 01-21-2009 at 06:24 PM
RE: Script query - by matty on 01-21-2009 at 06:24 PM
RE: RE: Script query - by djdannyp on 01-21-2009 at 06:42 PM
RE: Script query - by Spunky on 01-21-2009 at 06:39 PM
RE: Script query - by matty on 01-21-2009 at 07:49 PM
RE: Script query - by djdannyp on 01-21-2009 at 08:10 PM
RE: Script query - by Spunky on 01-21-2009 at 08:28 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