Versions Compared

Key

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

...

Code Block
// Create the list
Handle = SRP_List("Create")

// Insert several elements
SRP_List("InsertAt", Handle, 1, "ABC")
SRP_List("InsertAt", Handle, 10, "DEF")
SRP_List("InsertAt", Handle, 5, "EFG")

// Convert the SRP List into a normal list
List = SRP_List("GetVariable", Handle, ",")

 
// List = "ABC,,,,EFG,,,,,,DEF"
// NOTE that DEF is in position 11 because EFG was inserted, not set

// Play nice with memory
SRP_List("Release", Handle)