Viva Clipper !

CT_CHAREVEN

Advertisements
 CHAREVEN()
 Returns characters in the even positions of a string

 Syntax

     CHAREVEN(<cString>) --> cString

 Argument

     <cString>  Designates the character string from which all even
     characters are returned.

 Returns

     CHAREVEN() returns a string containing all the even characters of
     <cString>.

 Description

     CHAREVEN() assembles all even characters within a string into a new
     character string.  This allows you to process variables consisting of
     the characters and attributes of a video screen's contents very simply.
     This function can be implemented in conjunction with functions from the
     video section.  You can return the attributes from a screen string, with
     all the characters removed.

 Note

     .  The first position in a string is 1, and therefore is not
        even.

 Examples

     .  Assemble all even characters:

        ? CHAREVEN("1234a")              // "24"

     .  Return the expanded text to "normal":

        ? CHAREVEN(" H e l l o")         // "Hello"

See Also: CHARMIX() CHARODD() SCREENMIX() SCREENSTR() STRSCREEN()

 

Advertisements

Advertisements