REMRIGHT()

REMRIGHT()

Remove certain characters at the right of a string

Syntax

       REMRIGHT( <cString>, [<cSearch|nSearch>] ) -> cString

Arguments

<cString> Designates the string that is processed.

<cSearch|nSearch> Designates the character that is removed from the end of the <cString>. The default value is a space, CHR(32).

Returns

REMRIGHT() returns the modified <cString>.

Description

REMRIGHT() functions exactly like Harbour’s RTRIM(), with one exception. While this Harbour function can only remove spaces, REMRIGHT() can remove any character you choose. The character that is removed can be specified with the <cCharacter|nCharacter> parameter.

Note

. When the <cCharacter|nCharacter> parameter is not specified, spaces are removed.

Examples

       .  Remove the spaces:
              ? REMRIGHT("   abc   ")         // "   abc"
       .  Remove the character ".":
              ? REMRIGHT("..abc..", ".")      // "..abc"

Compliance

REMRIGHT() is compatible with CT3’s REMRIGHT().

Platforms

All

Files

Source is remove.c, library is libct.

Seealso

REMALL(), REMLEFT()

Advertisements

2 responses to “REMRIGHT()

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

  2. Pingback: Harbour String Functions | 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