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

InputLen

Sets or Retrieves the number of bytes to be read from the receive buffer.

Available at design time and runtime.

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

         Syntax object.InputLen = value
     
  object Name of the communications control.
  value A numerical expression indicating the maximum number of bytes to be retrieved by the Input property.
     
  Examples object.InputLen = 1 '// Set the value (receive 1 byte at a time)
       
    Text1.text = object.InputLen '// retrieve the current setting
       

Remarks:

This property affects the way that the Input property functions. When your application collects/retrieves data from the receive buffer (See the Input property) it will return a maximum of this many bytes. If more bytes exist in the receive buffer then you would need to call the Input property a number of times to retrieve all bytes from the receive buffer.

The default for this property is 0 (zero) If this property is set to 0 then the Input property will retrieve ALL bytes from the receive buffer.You would usually only wish to change this property if you needed to process your receive data in fixed/known length packets.


Differences in behavior between MSComm32 and Comm32

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

Comm32
Value can be up to Long Integer.

 

 

 

 

Copyright (c) 2010 Axis Controls Ltd