New topic: 

Getting text from multiple selection listbox

<http://forums.realsoftware.com/viewtopic.php?t=45972>

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        f_hendriksen          Post subject: Getting text from multiple 
selection listboxPosted: Sun Nov 18, 2012 12:19 pm                         
Joined: Fri Sep 18, 2009 8:09 am
Posts: 68                I have a listbox with languages, like this:
Abkhazian
Afar
Afrikaans
Albanian
Amharic
Arabic
etc.

I want to select more items and add them to a textfield, like this:
Afrikaans,Arabic

How can I do this? I tried textfield1.text=listbox1.text, but then only one 
item ends up in the textfield.   
                             Top                markwalsh          Post 
subject: Re: Getting text from multiple selection listboxPosted: Sun Nov 18, 
2012 12:41 pm                         
Joined: Wed May 20, 2009 4:43 pm
Posts: 906                f_hendriksen wrote:I have a listbox with languages, 
like this:
Abkhazian
Afar
Afrikaans
Albanian
Amharic
Arabic
etc.

I want to select more items and add them to a textfield, like this:
Afrikaans,Arabic

How can I do this? I tried textfield1.text=listbox1.text, but then only one 
item ends up in the textfield.
Loop through all of the rows, and if listbox1.selected(row) is true, then add 
that item to your textfield.      
_________________
RB 2009r4 Windows XP  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to