Function PosEqual() Foundation

Determines the first position where two strings are equal.

Syntax
PosEqual( <cString1>              , ;
          <cString2>              , ;
          [<nCompareChars>]       , ;
          [<nIgnoreCharsFromLeft>]  ;  // Default: 0
        ) --> nPosition
Return

Returns the position of the first character where both strings are equal up to the number of <nCompareChars> or 0 if no match is found.

Description

The parameter <nCompareChars> defaults to the following expression:

Min( Len(cString1), Len(cString2) ) 

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.