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

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.

 
       

 

 

 

Copyright (c) 2010 Axis Controls Ltd