cdholding image

comm32 home
comm32 forum
buy comm32

Introduction
Install SComm32
Why Not MsComm?

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

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 SComm32 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:

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

If .InputLen is set to a value above zero then .Input will return a maximum of this many bytes. If more bytes exist in the receive buffer then you would need to .Input a number of times to retrieve all bytes from the receive buffer.

SComm32 has an improvement over MSComm32.

If this property is > 0 but less bytes exist in the input buffer then SComm32 will "Look Ahead" and if possible return with the requested number of bytes.

 

 

 

 
32bit development in VB6 using the Comm32 Communications OCX ?

Or are you looking for a proper .Net Component ?

Carry on using most of the common and well documented MSComm32 syntax but with a proper .net component allowing you to build x86, x64 and AnyCPU projects using Visual Studio 2005, 2008 and 2010.

www.Comm64.com
The x86, x64 and AnyCPU
Serial component

 

 

Copyright (c) 2010 Axis Controls Ltd