Removes an element from an SRP List at the given index position.
Syntax
SRP_List("RemoveAt", Handle, Index) |
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) |
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+.
// 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) |