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

clear combobox
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: clear combobox
Well firstly make sure that window is a declared variable and has taken on the PlusWnd type.

so
code:
var window = CreateWnd("file.xml", "wndwindow");

I would suggest doing something like this

code:
funciton ClearComboBox(Wnd, sControlId){
    for (var i=0; Wnd.Combo_GetCount(sControlId)-1; i++){
        Wnd.Combo_RemoteItem(sControlId, i);
    }
}

Then to use it you use:
code:
ClearComboBox(Window, "combobox");




Oops duh!

* matty slaps himself

Sorry about that

This post was edited on 06-26-2006 at 02:31 PM by matty.
06-26-2006 12:58 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
clear combobox - by tombotxp on 06-26-2006 at 12:51 PM
RE: clear combobox - by matty on 06-26-2006 at 12:58 PM
RE: clear combobox - by tombotxp on 06-26-2006 at 01:45 PM
RE: clear combobox - by -dt- on 06-26-2006 at 01:59 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