OUTBYTE() Sends a byte to a port ------------------------------------------------------------------------------ Syntax OUTBYTE(<nPort|cHexPort>,<nOutByte|cHexOutByte>) --> lSuccessful Arguments <nPort|cHexPort> Designates a port address to which you can pass a byte. This value can be a decimal integer or hexadecimal string. <nOutByte|cHexOutByte> Designates the byte passed to the specified port. This value can be a decimal integer or hexadecimal string. Returns OUTBYTE() returns .T. when the operation is successfully completed. A return value of .F. indicates a parameter error. Description Clipper Tools always attempts to offer finished solutions at the highest-possible level for such standard hardware as a serial interface port.. However, if highly specialized systems and their ports are to receive data from Clipper, use OUTBYTE() or OUTWORD(). Note . The function does not determine if a port is available, or if you cannot write to it. Examples Transfer a byte to the fifth port address of the first serial interface port. This is only an example, since Clipper Tools has special serial interface port functions. . With a decimal parameter: ? OUTBYTE(1020, 1) // 5th port COM1, DTR On . With a hexadecimal parameter: ? OUTBYTE("3FC", 0) // 5th port COM1, DTR Off
See Also: INBYTE() OUTWORD()