TXFREE(x)
 
Syntax


FUNCTION TXFREE( channel ) as INTEGER               ' built-in keyword

Description -- added in version 8.30
 

TXFREE(channel) will return the amount of free space in the TX buffer of channel  in bytes.
Example

print TXFREE(1)          ' show the amount of free space in TXD buffer

TXD(1)="a"
TXD(1)="b"
TXD(1)="c"
TXD(1)="d"

print TXFREE(1)         ' should be less space available for UARTs without FIFOs
 

Differences from other BASICs

See also