Performs a DELETE on an SRP Fast Array.

Syntax

SRP_FastArray("Delete", Handle, Field, Value, SubValue)

Parameters

ParameterDescription
HandleHandle to an existing SRP Fast Array (REQUIRED)
FieldField position (REQUIRED)
ValueValue position (REQUIRED)
SubValueSubValue position (REQUIRED)

Remarks

The Delete service mimics the BASIC+ Delete function and works exactly the same way. Pass the Field, Value, and Subvalue positions of the element you want to delete. To delete a whole field, set both Value and SubValue to 0. To delete a whole value, set SubValue to 0.

Examples

// Create an empty fast array
Handle = SRP_FastArray("Create")

// Insert several values
SRP_FastArray("Insert", Handle, 1, 2, 0, "ABC":@SVM:"DEF")
SRP_FastArray("Insert", Handle, 2, 0, 0, "EFG")
SRP_FastArray("Insert", Handle, 3, 1, 7, "HIJ")

// Delete ABC
SRP_FastArray("Delete", Handle, 1, 2, 1)

// Get the final array
Variable = SRP_FastArray("GetVariable", Handle)
 
// All done
SRP_FastArray("Release", Handle)

The final variable looks like this:

<1>
<1, 1>
<1, 2>      DEF
<2>         EFG
<3>
<3, 1>
  <3, 1, 1>
  <3, 1, 2>
  <3, 1, 3>
  <3, 1, 4>
  <3, 1, 5>
  <3, 1, 6>
  <3, 1, 7> HIJ
  • No labels