CharRela()

CHARRELA

Correlates the character positions in paired strings

Syntax

       CHARRELA(<cSearchFor1>,<cString1>,<cSearchFor2>,
              <cString2>) --> nPosition

Arguments

<cSearchFor1> Designates the character that is searched for in <cString1>.

<cString1> Designates the character string to search with <cSearchFor1>.

<cSearchFor2> Designates the character that is searched for in <cString2>. <cString2> Designates the character string to search with <cSearchFor2>.

Returns

CHARRELA() returns the positions where <cSearchFor1> and <cSearchFor2> occur in the corresponding character strings.

Description

This function builds a relationship (CHAR RELAtion) between two character strings. It determines the positions where the characters in <cSearchFor1> appear in <cString1> and where the characters in <cSearchFor2> appear in <cString2>.

Note

. The function returns a value of 0 if no relationship is found.

Example

       Search for the first position in which a "b" appears in the first string
           and a "1" appears in the second:
           ? CHARRELA("b", "b b b b", "1", "bbb11111")      // 5

See also

CHARRELREP()

Advertisements

2 responses to “CharRela()

  1. Pingback: Harbour String Functions | Viva Clipper !

  2. Pingback: Harbour All Functions – C | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s