Hello mrf,

To append an item from a combobox to a listbox, try this:

listbox1.appendString(
combobox1.value);



If you want to put the string in a specific position, try this:

listbox1.insertStringAt(combobox1.value,1);
//The string will be insert at the second position

//Don't forget to make a loop to check if the element wasn't previously
included



To remove an element to the listbox, try this:

listbox1.removeElement(listbox1.selectedItem);

//Do not forget to check if an item was selected

Best Regards,
-- 
Wagner Nitsch Bressan


On Wed, Jan 20, 2010 at 6:03 AM, mrf <[email protected]> wrote:

> Hi friends., i need help in appending items to a list box
> dynamically.,
> In my gadget I have a items in combo box and now based on the selected
> item in the combobox i need to append those values in a list.
> In brief,I need to show the selected items back to the user which are
> chosen by him from a combobox.
>
> However,I tried to display the selected items from combo box to a list
> and after that the most big issue am facing is, wat if the user want
> to delete the item in the listbox which he was appended earlier from
> combobox..??
>
> Please, also kindly suggest me.,wat I hav tried here is
> listbox.selectedIndex to know the selected item in listbox but i'm
> failing to delete by using that index.
>
>
> Your reply, helps me a lot... Please friends i know that u people help
> me but wat am requesting u is do the help as soon as possible...
> Thanks in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Desktop Developer Group" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-desktop-developer%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-desktop-developer?hl=en.
>
>
>
>


-- 
Wagner Nitsch Bressan
(11)8296-5831

-- 
You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-desktop-developer?hl=en.

Reply via email to