CharOdd()

CHARODD()

Returns the characters on the odd positions in a string

Syntax

      CHARODD( <cString> ) --> cOddString

Arguments

<cString> processed string

Returns

<cOddString> a string containing all character from odd positions in <cString>

Description

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

Examples

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

Tests

      CHARODD( "1A2B3C4D5E" ) == "12345"
      CHARODD( "1A2B3C4D5" )  == "12345"

Compliance

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

Platforms

All

Files

Source is charevod.c, library is ct3.

Seealso

CHAREVEN(), CHARMIX()

Advertisements

2 responses to “CharOdd()

  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