StrFind
- find substring in a string

String manipulation
(AmiBroker 4.50)


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:

See updated/extended version on-line.