New topic: 

Combo Box

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

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        S.Rampling          Post subject: Combo BoxPosted: Fri Apr 15, 
2011 3:12 am                         
Joined: Sat Jan 08, 2011 4:47 pm
Posts: 265
Location: Sydney, Australia                How do I populate a Combobox with 
data from a Database.

Thanks Shane      
_________________
Thanks to any and all who can help with my limited knowledge of Real Studio.
54YO Kart Racer from Sydney Australia
Real Studio 2010r5.1 Win 7  
                             Top                 jefftullin          Post 
subject: Re: Combo BoxPosted: Fri Apr 15, 2011 3:51 am                          
       
Joined: Wed Nov 15, 2006 3:50 pm
Posts: 2272
Location: England                Code:Dim rs as recordset
rs = yourDatabase.SQLSelect("your select statement")

yourComboBox.DeleteAllRows

While rs.EOF = False
yourComboBox.AddRow rs.Idxfield(1).getString
rs.MoveNext
Wend   
                             Top                S.Rampling          Post 
subject: Re: Combo BoxPosted: Fri Apr 15, 2011 7:25 pm                         
Joined: Sat Jan 08, 2011 4:47 pm
Posts: 265
Location: Sydney, Australia                Thanks Jeff, works like a charm.
Shane.      
_________________
Thanks to any and all who can help with my limited knowledge of Real Studio.
54YO Kart Racer from Sydney Australia
Real Studio 2010r5.1 Win 7  
                             Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 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