StrFind
- find substring in a string

String manipulation
(AFL 2.5)


SYNTAX StrFind( string, substring )
RETURNS NUMBER
FUNCTION The StrFind function finds first occurrence of substring in string.

Returns 0 if not found, otherwise returns character index (one-based) of first occurrence.

EXAMPLE if( StrFind( Name(), ".L" ) )
{
  
printf( "The " + Name() + " has .L suffix ");
}
else
{
  
printf( "The " + Name() + " does not have .L suffix ");
}
SEE ALSO StrExtract() function

References:

The StrFind function is used in the following formulas in AFL on-line library:

More information:

Updated on-line reference