ListBox.AddItem Method (Typed) | |
Add a new item to a list box at a specified position.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD AddItem(
cItem,
nItemNumber,
uRetValue
) AS LONG CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public override int AddItem(
Usual cItem = default,
Usual nItemNumber = default,
Usual uRetValue = default
)
Request Example
View SourceParameters
- cItem (Optional)
- Type: Usual
The item to be inserted. - nItemNumber (Optional)
- Type: Usual
The position in the list box at which to insert the new item. Specify one of the values listed below. - uRetValue (Optional)
- Type: Usual
The value associated with the specified item. The default is cItem.
Return Value
Type:
Long
If the item was added, its position in the list box is returned (a value of 1 refers to the first position in the list box). If the item could not be added, 0 is returned.
Remarks
Value Position
0 In an unsorted list box, adds the new item at the end of the list; if sorted, inserts the new item at a position determined by the list box. This is the default.
1 The first position in the list box.
n The nth position in the list box.
See Also