Removes an element from an SRP List at the given index position.
Syntax
SRP_List_RemoveAt(Handle, Index)
Parameters
| Parameter | Description |
|---|---|
| Handle | Handle to an existing SRP List (REQUIRED) |
| Index | The position within the SRP List from which the element will be removed (REQUIRED) |
Remarks
The SRP_List_RemoveAt method remove an element from an SRP List at the given position.
IMPORTANT: You should always release the handle to an SRP List when you no longer need it by calling SRP_List_Release.
Examples
// Create the list
Handle = SRP_List_Create("ABC,DEF,EFG", ",")
// Remove element 2
SRP_List_RemoveAt(Handle, 2)
// Convert the SRP List into a normal list
List = SRP_List_GetVariable(Handle, ",")
// List = "ABC,EFG"
// Play nice with memory
SRP_List_Release(Handle)