

#Xojo weblistbox rowcount code

Not necessarily additional bells and whistles, but basic features that the current WebListBox lacks. If index is less than 0 or greater than the highest column index then an OutOfBoundsException is raised. 'Load the contents of the Listbox into an array (each row its own) (vals) and add them to an sortitem I have seen many a time posts here from people who desperately seek a Weblistbox that would simply be just like Desktop ListBox. HeadIndex as integer - the index of the header the user clicked in the listbox.ColumnValues() as String - an array where we store one row of our listbox.SelectedHeader as integer - this is the id of the column which is the source of the sort order.LST as WebListBox - this is our listbox which we want to sort.

The Function SortListbox needs 2 parameter: one Function: SortListbox Place it in the App or Session Element for example.So I used my brain and made a simple solution, that everyone can use. Since I often use dynamic filled listboxes with different column counts, most examples wount work.Īnother fact is, that there is no working example or hint in this forum, which solves the problem. In the Xojo examples is a project with a listbox with static columns. One of the functions I miss most in Xojo Webedition is an easy way to sort weblistboxes. This is my third tutorial about some code-stuff I use in my webapps.
