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 RemoveAt service removes the element from an SRP List at the given position. The element is removed entirely, thereby shrinking the size of the list, just like the Delete method in BASIC+.
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)