New topic: 

Listbox compare operator problem

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

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        juanjo          Post subject: Listbox compare operator 
problemPosted: Sun Oct 14, 2012 3:07 pm                         
Joined: Wed Oct 12, 2011 8:52 am
Posts: 10                Hello, Could someone please help me solve a problem?
I have 1 listbox call(ltbProgramaOPL) and a combobox call(cbbPresidentes), if I 
check the text that is in the listbox with the combobox, I have an Crash.
The code is this :

  //recorro ltbProgramaOPL
  Dim i As Integer
  For i = ltbProgramaOPL.ListIndex to ltbProgramaOPL.ListCount
  //if ltbProgramaOPL is diferent from cbbPresidentes text then...
  if ltbProgramaOPL.Cell(i, 3).Trim <> 
cbbPresidentes.List(cbbPresidentes.ListIndex).Trim then
  //I put text in ltbProgramaOPL
  ltbProgramaOPL.Cell(i, 4) = cbbPresidentes.List(cbbPresidentes.ListIndex)
  end if
  Next

I want only recuperate names in cbbPresidentes in alphabetical order and pass 
this to ltbProgramaOPL.

Thanks for your help...   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
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