SComm32 Communications OCX. A replacement for the MSComm32 OCX

     

Properties and Methods

SComm32 OCX is an ActiveX component (OCX) that software developers can add to the tool box of their development environment in place of Microsoft's MSComm32 component.

Developers using Visual basic 6 and many other similar environments such as Office/VBA can use SComm32 to quickly add Serial Communications capabilities to software projects in 32 and 64bit versions of Windows 10, Windows 8, 7, Vista and XP.

SComm32 has the same property names, methods and syntax as the now unsupported MSComm32 so, in many cases, it takes just a minute or two to add our SComm32 component to a project in place of MSComm32 without needing to change any of your code or learn any new syntax.

 
SComm1.CommPort = 23 '// Use Any Com Port
SComm1.Settings = "9600,n,8,1" '// Setup the Com Port
SComm1.PortOpen = True '// Open the Port
   
SComm1.Output = "Hello World" '// Send some data
   
Do While SComm1.InBufferCount > 0) '// Is there any incoming data?
    Text1.Text = Text1.Text & SComm1.Input '// Receive Data
Loop  
   
SComm1.PortOpen = False '// Close the port.
   
  '// Simple ?

 
SComm1.CommPort = 23
'// Use Any Com Port
SComm1.Settings = "9600,n,8,1"
'// Setup the com port
SComm1.PortOpen = True
'// Open the port
 
SComm1.Output = "Hello World"
'// Send some data
Do While SComm1.InBufferCount > 0)
'// is there any incoming data?
    Text1.Text = Text1.Text & SComm1.Input
Loop
 
SComm1.PortOpen = False
'// Close the port
 
'// Simple ??



Most Recent Topics in the SComm32 Support Forum.

 
Topic Posts Date/Time

MScomm32 comEvSend event doesn't always fire.1  by Support
 Oct 16 2017 at 12:41:39 PM
Excel VBA crashes with Scomm32x9  by Guest
 Oct 15 2017 at 09:25:37 AM
Scomm32 how to check if the target gets the data1  by Guest
 Oct 3 2017 at 06:44:24 AM
.Input method hangs the application when using USB/422/485 device1  by Jorge
 Oct 2 2017 at 01:08:40 AM
Excel VBA crashes with Scomm326  by Jorde
 Oct 1 2017 at 06:59:19 PM
can't find SComm in additional controls of VB2  by Guest
 Sep 26 2017 at 07:11:54 PM
SCOMM32 and PB - 64 bit8  by Guest
 Sep 21 2017 at 08:18:28 AM
Using SComm32 in VB6 application (without form)8  by Guest
 Sep 18 2017 at 01:48:03 AM
Scomm32 won't accept registration number1  by Guest
 Sep 18 2017 at 01:36:55 AM

Properties/Methods
. Break
. CDHolding
. Commevent
. CommName
. CommPort
. CTSHolding
. DSRHolding
. DTREnable
. EOFChar
. EOFEnable
. EvtChar
. EvtCharEnable
. Handshaking
. InBufferCount
. InBufferSize
. Input
. InputLen
. InputMode
. NullDiscard
. OutBufferCount
. OutBufferSize
. Output
. OverlappedIO
. ParityReplace
. PortOpen
. Read
. RThreshold
. RTSEnable
. Settings
. SThreshold

OnComm Event
Hardware/Cables etc
Loopback Test Plug

Install SComm OnComm Event Cables etc Test Plug

SComm32 Properties and Methods.

Break CDHolding Commevent CommPort CTSHolding DSRHolding DTREnable EOFEnable Handshaking InBufferCount InBufferSize Input InputLen InputMode NullDiscard OutBufferCount OutBufferSize Output ParityReplace PortOpen RThreshold RTSEnable Settings SThreshold