Truncates the number of combo box control, or menu options.
Syntax:
TruncateOption(id,max)
Parameters
id - ID of a combo control to delete option from. max - Maximum number of options.
Remarks:
This function has no effect if the total number of options is less than the specified max value.
Menu separators are removed, but are ignored by the max counter.
Compatibility
From version 2.4.1, the TruncateOption() function can be used to truncate Menu options. Prior to v2.4.1, this function must only be used with combo box controls.