RAt()

RAT()

Searches for a substring from the right side of a string.

Syntax

      RAT( <cSearch>, <cString> ) --> nPos

Arguments

<cSearch> Substring to search for

<cString> Main string

Returns

RAT() return the location of beginning position.

Description

This function searches through <cString> for the first existence of <cSearch>. The search operation is performed from the right side of <cString> to the left. If the function is unable to find any occurrence of <cSearch> in <cString>, the return value is 0.

Examples

      ? 'RAt( "cde", "abcdefgfedcba" ) = ' +;
         RAt( "cde", "abcsefgfedcba" )

Compliance

Clipper

Platforms

All  (64K)

Files

Library is rtl

Seealso

AT(), SUBSTR(), RIGHT()

3 responses to “RAt()

  1. Pingback: Harbour All Functions – R | Viva Clipper !

  2. Pingback: Harbour String Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | 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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.