Deletes all items in the drop list user control that is specified by userControlID
.
User Window
deleteAllDropListItems userControlID |
Name | Type | Required | Comments |
---|---|---|---|
userControlId | int | yes | ID of user control to operate on. |
None
void
// Delete all the items in a Drop List User Control. int $windowId; int $controlId; // First create a User Window to place the Control on $windowId = `createWindow "MyWindow"`; // Create the User Control on the Window. $controlId = `createDropList $windowId`; // Add some items to the Drop List. addDropListItem $controlId "Item 1"; addDropListItem $controlId "Item 2"; addDropListItem $controlId "Item 3"; // Delete all the items. The Drop List will be empty after this. deleteAllDropListItems $controlId; |