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()
Pingback: Harbour String Functions | Viva Clipper !
Pingback: Harbour All Functions – C | Viva Clipper !