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

can't find SComm in additional controls of VB10  by isma
 Nov 15 2017 at 02:42:24 PM
MScomm32 comEvSend event doesn't always fire.3  by Support
 Nov 3 2017 at 01:01:49 PM
Purchasing License 1  by Guest
 Oct 31 2017 at 02:14:09 PM
A difference COMM32 and MSCOMM325  by mjohnm
 Oct 31 2017 at 01:02:49 PM
Using SComm32 OCX in Office/MSAccess 365 (Access 2016)2  by Guest
 Oct 23 2017 at 07:25:26 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

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