List Box, Maximum number of option allowed

Is there a maximum number of options that a List Box can display or are the number of options limited by the total number of characters of all the options?
Thanks, Erik

32767 (2^15 -1) is the max. item count.

That number is a lot and works for me and also sounds familiar in general. So I assume then there is no character maximum achieving the 32767 options?

maybe some clue from …
LibreOffice: XListBox Interface Reference
https://opengrok.libreoffice.org/xref/core/forms/source/component/ListBox.cxx?r=8c1dbd3188a3baeaab849d4a72e9de8ea85e00fd#940