Sets the number of items that this selectbox can have.
selectInstance.Length = numberOfItems
|int||numberOfItems||The number of items that this selectbox can have.|
// anySelect is an instance of select class.
anySelect.Length = 5;
You can manipulate the number of items by setting Length.
If you set more than the current number of items, an empty option tag will be automatically added. If you set less than the current number of items, the option tag will be automatically deleted from the end.
An exception is raised if you set a number less than zero.
Links for reference