CalcIt Commands

SEARCH(arr, Expr, Start=1, Width)

Using SEARCH command we can find the position of a string in an array.

e.g. a:=SEARCH(d,'house',5).

It searches arr for string 'house' starting at character 5 in every line. If finds it then returns the position of it in arr otherwise returns 0. 

Parameter of starting character (Start) is optional. If omitted then 1 is assumed.

Parameter Width is optional. If omitted then the rest of the string is accessed.

Searching is not case sensitive.

See also the array expression version below.

SEARCH(arr, Expr, Start=1, Width)

Returns an array with all positions the Expr is found in arr. It is used in array expressions. For the rest of parameters see above.

Go Back