Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Problem
Message
From
25/01/2000 19:57:27
 
 
To
25/01/2000 19:50:30
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00322152
Message ID:
00322517
Views:
33
>>>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...
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform