CharRem()

CHARREM()

Removes characters from a string

Syntax

      CHARREM( <cDeleteThisCharacters>, <cString> ) -> cReducedString

Arguments

<cDeleteThisCharacters> specifies the characters that should be deleted in <cString>

<cString>) is the string that should be processed

Returns

<cReducedString> is a string where the characters specified in <cDeleteThisCharacters> are deleted

Description

The CHARREM() function deletes the characters specified in <cDeleteThisCharacters> from <cString>.

Examples

      ? CHARREM( " ", " 1  2  " )   // "12"
      ? CHARREM( "3y", "xyz123" )   // "xz12"

Tests

      CHARREM( " ", " 1  2  " ) == "12"
      CHARREM( "3y", "xyz123" ) == "xz12"

Compliance

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

Platforms

All

Files

Source is charonly.c, library is ct3.

Seealso

CHARONLY(), WORDONLY(), WORDREM()

2 responses to “CharRem()

  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 )

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.