Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

$FIND

1977 Version of ANSI Standard

3.2.8 Functions function

$F[IND]( expr1 , expr2 )

searches for the leftmost occurrence of the value of expr2 in the value of expr1. If none is found, $F returns zero. If one is found, the value returned is the integer representing the number of the character position immediately to the right of the rightmost character of the found occurrence of expr2 in expr1. In particular, if the value of expr2 is empty, $F returns 1.

$F[IND]( expr1 , expr2 , intexpr3 )

Let m be the value of intexpr3. $F begins the search at the mth position of expr1. If no instance of expr2 is found, $F returns zero; otherwise, $F(A,B,m) = $F($E(A,m,$L(A)),B) + m - 1.

See also the transition diagram for $Find.

Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.

This page most recently updated on 13-Sep-2014, 16:41:44.

For comments, contact Ed de Moel (demoel@jacquardsystems.com)