ValueList.Delete

Syntax:

Delete(<Item>)

Parameters:

<Item> (required)

Type: Number; ValueListItem.
Item to be deleted or its index.

Description:

Deletes an item from the list of values.

Availability:

Thin client, web-client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Example:

// Deleting by index in the list
PriceTypesList.Delete(0);

// Deleting by item
FoundItem = PriceTypesList.FindByValue(SelValue);
If 
FoundItem <> Undefined Then
    PriceTypesList.Delete(FoundItem);
Else
    Message("Value not found!");
EndIf
;


    

1C:Enterprise Developer's Community