Kbase P31122: What is the maximum number of entries that may be entered in
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  7/11/2003 |
|
Status: Unverified
GOAL:
What is the maximum number of entries that may be entered into in a combo box?
FACT(s) (Environment):
Windows
FACT(s) (Environment):
Progress 9.1D
FIX:
The maximum number of entries that a combo-box widget can hold is a function of the individual entry size and the available system resources.
The following code was used to populate a combo-box widget with a 100,000 entries of 256 characters each using a windows XP with 1 GB RAM under 9.1D.
DEFINE VARIABLE i AS INTEGER NO-UNDO.
DEFINE VARIABLE c AS CHARACTER NO-UNDO.
DO i = 1 TO 10000:
c = STRING(i) + FILL("a", 256 - LENGTH(STRING(i))).
COMBO-BOX-1:ADD-LAST(c).
END.