SComm32 Communications OCX

   







Properties/Methods

. Break
. CDHolding
. Commevent
. CommName
. CommPort
. CTSHolding
. DSRHolding
. DTREnable
. EOFChar
. EOFEnable
. EvtChar
. EvtCharEnable
. Handshaking
. InBufferCount
. InBufferSize
. Input
. InputLen
. InputMode
. NullDiscard
. OutBufferCount
. OutBufferSize
. Output
. OverlappedIO
. ParityReplace
. PortOpen
. Read
. RThreshold
. RTSEnable
. Settings
. SThreshold

OnComm Event
Hardware/Cables etc
Loopback Test Plug

OutbufferSize

Sets or Retrieves the size of the output buffer.

MSComm32 and SComm32 have the same syntax and functionality.


Syntax:-

SComm1.OutbufferSize = value
 

value:-

A numerical expression indicating the size of the transmit buffer.
 

Example:-

'// To Read the current OutBufferSize
n = SComm1.OutbufferSize


'// To setup a 4096 byte transmit buffer
SComm1.OutbufferSize = 4096

 


Remarks

Set before the port is opened. This value takes effect (memory is allocated) when the port is opened.

If you write more data into the transmit buffer exceeeding the size of the buffer then data loss may occur without warning (an OnComm error event (not a runtime error) is triggered 'after' the data loss occurs).