Toolbar Browser
3. Reference
Triggers
Controls
Variables
System Variables
Global Values
Functions
AutoFill()
Back()
Beep()
CheckLinks()
Checksum()
Click()
Command()
Customize()
DeleteOption()
Enable()
Execute()
ExportLinks()
Forward()
GetFolderIcon()
GetQuery()
GetSystemIcon()
Header()
Highlight()
HistoryMenu()
Home()
IfExactMatch()
IfMatch()
ImportValue()
ImportCaption()
ImportIntValue()
ImportXMLValue()
Length()
LoadMenu()
Menu()
OpenURL()
Options()
PageText()
PlaySound()
PopupManager()
Refresh()
Replace()
ReplaceAll()
Resize()
ResizeClient()
Redraw()
Save()
Search()
SearchBack()
SearchLast()
SearchNext()
SearchPage()
SetCaption()
SetClipboard()
SetFocus()
SetFontSize()
SetIcon()
SetOption()
SetParam()
SetText()
SetStatusText()
SetTooltip()
SetUserAgent()
SetValue()
Show()
Stop()
StripHTML()
ToolbarMenu()
TruncateOption()
UpdateToolbar()
Zoom()
Text Functions
 

TruncateOption() Function

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.


See Also: