Hi,
I have tried to populate a Listbox, but I cannot find documentation that explains how to do it. It might be because I haven’t looked the right place, so I would appreciate an advice to where i can find an example.
For the sake of simplicity, my example is just a row of names that i want to put in the Listbox.
“Peter”,“Paul”, “Mary”, “John”, “George”, “Paul”,“Richard”
I am completly stuck so any advice where I can find an example showing this is much appreciated.
Best regards,
Kristian Nielsen, Copenhagen
listboxInstance.AddRow( "Peter","Paul", "Mary", "John", "George", "Paul","Richard" )
http://developer.xojo.com/listbox
For more complex delivery…
lbInstance.AddRow( "Peter" )
dim li as Integer = lbInstance.LastIndex
lbInstance.Cell( li, 1 ) = "Paul"
lbInstance.Cell( li, 2 ) = "Mary"
And so on.
DaveS
(DaveS)
March 10, 2018, 4:46pm
3
AddRow
it is clearly shown in not only the documents, but in various example programs that came with Xojo
To access those examples, if on Windows, you’re looking in…
Windows: C:\\Program Files\\Xojo\\Xojo 2017r3\\Example Projects
macOS: /Applications/Xojo 2017 Release 3/Example Projects/
Thank you! I’ll move on from there. As clear it may seem, it is apparently not clear to me
Kind regards,
Kristian
In the interest of completeness, the ListBox specific examples are under Example Projects\Desktop\Controls\ListBox
Thank you, Anthony! Much appreciated!
Thanks again - I have now worked my way through the example and webinar of the Xojo Notes app and a lot of things fell into place
I’ll be back!
Kristian