Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
SRP_List_RemoveAt(Handle, Index)

Parameters

ParameterDescription
HandleHandle to an existing SRP List (REQUIRED)
IndexThe 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

Code Block
// 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)