CharEven()

CHAREVEN()

Returns the characters on the even positions in a string

Syntax

      CHAREVEN( <cString> ) --> cEvenString

Arguments

<cString> processed string

Returns

<cEvenString> a string containing all character from even positions in <cString>

Description

The CHAREVEN() function looks for the characters on the even positions in a given string, collects them and returns them as a string.

Examples

      ? CHAREVEN( " H E L L O !" ) // -> "HELLO!"

Tests

      CHAREVEN( " 1 2 3 4 5" ) == "12345"
      CHAREVEN( " 1 2 3 4 " ) == "1234"
      CHAREVEN( " " ) == ""

Compliance

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

Platforms

All

Files

Source is charevod.c, library is ct3.

Seealso

CHARODD(), CHARMIX()

Advertisements

2 responses to “CharEven()

  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