cdholding image

comm32 home
comm32 download
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

OnComm Event
Hardware/Cables etc

getByte

Gets one byte of data from the receive buffer and returns true or false depending on success or failure.

Not available at design time. Read only at runtime.

Only available with Comm32 - Not available with MSComm32

         Syntax result = object.getByte(value)
     
  object Name of the communications control.
  result Boolean return value. true or false. Will be false if a byte could not be read from the receive buffer (ie if the buffer was empty)
     
  Example.  
   

Dim b as Byte

    If Comm1.getByte( b ) = True Then
        '// b contains the byte that was read
      Else
        '// No data was read - buffer was empty
    End If

'// This example will attempt to read one byte from the receive buffer. This function retreives the byte as a numeric byte value. Not as a string/character. Use this function to read/receive byte values in the range 0 to 255

You do NOT need to change the OutputMode property. The getByte function ALWAYS reads a numeric byte value.

 
       

 

 

 
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