DisplayCount
At last! This property, added in VFP 6, lets you determine how many items show up when you open a combo box.
Usage |
cboCombo.DisplayCount = nHowManyItems nHowManyItems = cboCombo.DisplayCount |
DisplayCount isn't choosy enough about what values it accepts. It'll let you specify 0 or a negative number. In VFP 6, in that case, it ignores you and just displays seven items. In VFP 7, setting DisplayCount negative displays the number of items you've set for List Display Count. More seriously, when you make DisplayCount big, the list doesn't even show up when you drop the combo open. On Tamar's system, things start getting weird once DisplayCount gets over 50 and, by 130, the list doesn't even show up or appears way above the form. In between, there are some other weird behaviors. The moral of the story is to choose reasonable values for DisplayCount. |
|
Example |
ThisForm.cboChoices.DisplayCount = 12 |
See Also |