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

InputMode

Sets or Retrieves the property indicating the InputMode

Available at design time and runtime.

         Syntax object.InputMode = value
     
  object Name of the communications control.
  value

A numerical expression being one of the following values.

0 = comInputModeText
1 = comInputModeBinary

     
  Examples Comm1.InputMode = 0 '// Set the value (Text mode)
   

Text1.Text = Comm1.Input

'// Display retrieved data as a string
       
       
    Comm1.InputMode = 1  
    Dim b( ) as Byte '// Array to hold received bytes.
   

b = Comm1.Input

NumBytesReceived = Ubound(b) +1

'// Do not set the size of the array.

'// Comm32 will size the array for you.

       
       
       

Remarks:

comInputModeText   Data is retrieved as a standard 'String'. Individual elements of the string may contain any ascii/byte value including control codes etc.

comInputModeBinary   Data is retrieved as an Array 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