PickBASIC / FlashBASIC

locate() function

.md
This is another name forlocate statementThe locate statement searches for the location of a specific string expression and returns the location in position.var.

Example(s)

Find a value in a dynamic array

continents = "africa":@vm:"asia":@vm:"europe"
locate("asia", continents, 1; pos; "al") then
   print "asia is at value " : pos   ;* asia is at value 2
end else
   print "not found"
end

Referenced by