[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CHAROR()
 Joins the corresponding ASCII code of paired strings with an OR operation
------------------------------------------------------------------------------
 Syntax

     CHAROR(<cString1>,<cString2>) --> cString

 Arguments

     <cString1>  [@]  Designates the string upon which the OR operation
     is performed.

     <cString2>  Designates the characters that are used when performing
     the OR operation on <cString1>.

 Returns

     CHAROR() returns the processed <cString1>.

 Description

     The function joins (links bit by bit using an OR operation) each
     character in <cString1> with the corresponding characters in <cString2>.
     CHAROR() can therefore place particular bits within the characters.

 Notes

     .  If both character strings are the same length, then the first
        byte of <cString1> is linked with the first byte of <cString2>, and
        the second byte of <cString1> is linked with the second byte of
        <cString2>, etc..  If <cString2> is shorter than <cString1>, then
        when the last byte of <cString2> is reached, it continues with the
        first byte of <cString2>.  However, if <cString1> is shorter than
        <cString2>, the process terminates at the end of <cString1>.

     .  The return value of this function can be suppressed by
        implementing CSETREF() to save room in working memory.

 Examples

     .  Both bytes in the first parameters are joined with OR using
        the "0" character.  This means that CHR(1) is converted into the
        ASCII character .1", CHR(2) into the ASCII character "2", etc.:

        ? CHAROR(CHR(1) + CHR(2), "0")            // "12"

     .  All bytes in the first parameters are joined (OR) with CHR(32)
        (set bit 5 only):

        ? CHAROR("123ABCC[\]abc", CHR (32))       // "123abc(|)abc"


See Also: CHARAND() CHARXOR() CHARNOT() CSETREF() Introduction
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson