cdholding image

comm32 home
comm32 forum
buy comm32

Introduction
Install Comm32
Why Not MsComm?

Properties
   .Break
   .CDHolding
   .CommEvent
   .CommPort
   .CTSHolding
   .DSRHolding
   .DTREnable
   .EOFEnable
   .Handshaking
   .InBufferCount
   .InBufferSize
   .Input
   .InputLen
   .InputMode
   .NullDiscard
   .OutBufferCount
   .OutBufferSize
   .OutPut
   .ParityReplace
   .PortOpen
   .RThreshold
   .RTSEnable
   .Settings
   .STHreshold


Comm32 Properties
   .DeviceName
   .EOFChar
   .EvtChar
   .EvtCharEnable
   .OutPutEx
   .OutPutMode
   .ParallelEnable
   .TxTimeout

Comm32 Functions
   .getByte

   .GetPortStatus
   .InstalledDrivers
   .putByte
   .PortExists
   .ReadBytes
   .ReadString
   .WriteBytes
   .WriteString

OnComm Event
Hardware/Cables etc

InbufferCount

Retrieves the number of bytes in the receive buffers.

Not available at design time.

MSComm32 and Comm32 have Similar but not identical behavior See Remarks below

         Syntax value = object.InbufferCount
     
  object Name of the communications control.
  value A numerical expression indicating the number of bytes in the receive buffer.
     
  Examples Text1.Text = object.InbufferCount '// Retrieves the number of bytes
'// in the buffer
       
    object.InbufferCount = 0 '// Deletes all data from the buffer
       

Remarks:

You can not 'Write' any value to this property except 0 (zero) which deletes all data from the receive buffer. Setting any other value causes an error.

Differences in behavior between MSComm32 and Comm32

MSComm32
Because the maximum buffer size is a (short) integer this property can not return a value larger than 32k.

Comm32
Return value can be up to Long Integer.

Important: If removing MSComm32 from an existing project and replacing it with Comm32 remember that MSComm32 limited this property to a 32k “Short” Integer value. If using larger buffers you will of course remember to use variables of a larger data type to receive/process return values etc.

 

 

Copyright (c) 2010 Axis Controls Ltd