>>>The NumberOfElements property limits the number of elements in the array to display in the control. Although I haven't figured out a reason to use it yet.
>>Well, I KNEW what it was, but I could never think of any use for it, either. :)
>
>I think its a down and dirty way telling you how many elements you have. Say you add an option at runtime: AddItem(), after enough of those you want to know how many you have... NumberOfElements. I think thats what its purpose is. As far as setting it yourself, it can be used in something like: where you change the array around that is the rowsource, and then do
NumberOfElements = alen(Array, 1)
so the right length is shown, but we now use ReQuery() for that instead .
Thanks, Mike. But note that NumberOf Elements ONLY WORKS if you have an array as the source, and the ColumnCount is 1. Not very useful, IMO.
What it seems it would allow you to do, is to display a subset of an array, using the FirstElement property and the NumberOfElements property. This would allow you to display array elements 5-10 of a somewhat larger array. But I still don't see where I'd ever make use of it...