[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
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()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson