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

RThreshold

Sets or Retrieves the number of bytes which must arrive in the receive buffer before an OnComm event is raised.

Available at design time and runtime.

MSComm32 and Comm32 have identical behavior

         Syntax object.RThreshold = value
     
  object Name of the communications control.
  value A numeric expression indicating the RThreshold number of bytes
     
  Examples object.RThreshold = 0 '// OnComm events will not be raised
'// when data is received
       
    object.RThreshold = 1 '// an OnComm event will be raised when
'// 1 or more characters are received in the
'// receive buffer
       
    Text1.Text = object.RThreshold '// Retrieves the current value
       

Remarks:

If this value is set to a value larger than zero then the control will raise an OnComm (evReceive) event when that number of bytes, or more, are in the receive buffer.

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 values 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