SComm32 Communications OCX. A replacement for the MSComm32 OCX

     

Properties and Methods

SComm32 is an ActiveX (OCX) component 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

Win10 Pro 64-bit, VB6 program using Comm32 version 3.20, and Prolific USB-Serial5  by Guest
 Apr 14 2017 at 08:29:17 AM
VB6 and usb-rs232 converter1  by Guest
 Apr 14 2017 at 08:17:01 AM
Implementation with WinCC Flexible crashes3  by Sammy
 Apr 11 2017 at 07:57:43 AM
Excel VBA crashes with Scomm326  by Guest
 Apr 10 2017 at 01:18:59 PM
Can I deploy the the my application with different machines?3  by Support
 Apr 4 2017 at 08:44:30 PM
Missing Spaces In Programs3  by Support
 Apr 4 2017 at 08:12:54 PM
Scomm32 Tx/Event issues8  by Support
 Mar 28 2017 at 09:09:41 PM
Problem with activation code.3  by Support
 Mar 20 2017 at 01:39:57 PM
Using SComm32 OCX in Office/MSAccess 365 (Access 2016)0  by Support
 Feb 28 2017 at 06:39:42 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