CT_CHAREVEN

 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()

 

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.