ProvideX V8.20 > Language Reference > 3. System Functions
444
GAP( ) Function
            Return Odd Parity String
Format
GAP(string$[,ERR=stmtref])
Where:
string$
Character string to convert to Odd parity.
stmtref
Program line number or label to transfer control to.
Returns
Odd parity value of string
Description
The GAP( ) function converts and returns the character string expression in Odd
parity. This function is typically used when dealing with communication lines. It is
not normally used in operating systems since the standard communications drivers
handle the generation of parity.
The number of one-bits in each byte of the character string determines the parity of
data. Odd parity data always has an odd number of one-bits in each byte of data.
See Also
GEP( ) Return Even Parity String, p.447
Examples
0110 PRINT "HTA(""This is a test"")
=",HTA("This is a test")
0120 PRINT "HTA(GAP(""This is a test""))=",HTA(GAP("This is a test"))
-:run
HTA("This is a test")
=5468697320697320612074657374
HTA(GAP("This is a test"))=5468E97320E973206120F4E573F4