New topic: Numeric format on Listbox
<http://forums.realsoftware.com/viewtopic.php?t=45824> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message nicokne Post subject: Numeric format on ListboxPosted: Tue Nov 06, 2012 3:29 pm Joined: Wed Jun 27, 2012 3:26 pm Posts: 9 Location: argentina Hi everyone! I read from a postgres table a numeric field (double precision) something like 10.32 When i show that field on the Listbox and want to reorder from lower to highest i do not obtain what i want. For example, the correct order would be 1.0 / 1.32 / 110 but the actual order is 1.0 / 110 / 1.32 This happen because the Listbox order the column as String but when i want to Appen a numeric value the Listbox raises an error ¿How could i append a double or integer value to a Listbox? ¿or is there another solution maybe? THANKS!! Top timhare Post subject: Re: Numeric format on ListboxPosted: Tue Nov 06, 2012 3:39 pm Joined: Fri Jan 06, 2006 3:21 pm Posts: 11777 Location: Portland, OR USA Implement the CompareRows event. There is an example at the bottom of the Language Ref page. http://docs.realsoftware.com/index.php/Listbox Top nicokne Post subject: Re: Numeric format on ListboxPosted: Tue Nov 06, 2012 11:05 pm Joined: Wed Jun 27, 2012 3:26 pm Posts: 9 Location: argentina thanks a lot, it works for me. regards! 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]
