Page History
...
Code Block |
---|
// Create a fast array
Handle = SRP_FastArray("Create", "Apple":@FM:"Banana":@FM:"Carrot")
// Find banana (MatchAll is the default)
SRP_FastArray("Match", Handle, "banana", FieldPos, ValuePos, SubValuePos)
// Result: FieldPos = 2, ValuePos = 1, SubValuePos = 1
// Find Doughnut
SRP_FastArray("Match", Handle, "doughnut", FieldPos, ValuePos, SubValuePos, "MatchAll")
// Result: FieldPos = 0, ValuePos = 0, SubValuePos = 0
// Find App anywhere
SRP_FastArray("Match", Handle, "app", FieldPos, ValuePos, SubValuePos, "MatchAnywhere")
// Result: FieldPos = 1, ValuePos = 1, SubValuePos = 1
// All done
Variable = SRP_FastArray("Release", Handle) |