Home Cooker Classes Others Rice CookerGX
Classes  >  select  >  Length(int)
select class : Length(int) setter

Description

Sets the number of items that this selectbox can have.

Syntax

selectInstance.Length = numberOfItems

Arguments

ClassNameDescription
intnumberOfItemsThe number of items that this selectbox can have.

Return value

None

Sample code

// anySelect is an instance of select class.

anySelect.Length = 5;

Notes

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

Copyright © Rice All rights reserved.