ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Serial/Parallel Ports functions
  • Closing the port
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Disables the detection of an event on a serial port. The event was managed by sEvent.
Example
// Détection de caractères sur le port COM1
sEvent(1, sEveCharReceived, "Lecture")
sEvent(1, sEveBreak, "Break")
...
sEndEvent(1, sEveBreak)
...

// --Procédure Lecture(NumPort, Event)
Trace(sRead(1, sInEntryQueue(1)))
Syntax
<Result> = sEndEvent(<Port number> [, <Event to stop>])
<Result>: Boolean
  • True if the function was run,
  • False otherwise.
<Port number>: Integer
  • Serial port number (1, 2, 3, ...32 for COM1, COM2, COM3, ... COM32).
  • Port number returned by sOpen (if this function was called with a port name).
<Event to stop>: Optional Integer constant (or combination of constants)
Event whose management must be stopped. If this parameter is not specified, all the events managed on the port are disabled.
sEveBreakReceive a "Break line" event
sEveCharReceivedReceive a character
sEveCTSChange of CTS status
sEveDSRChange of DSR status
sEveEntryQueue80The input buffer is full at 80%
sEveErrorDetect an error on the line
sEvePrinterErrorPrinter error detected
sEveRingDetect the "Ring" signal (ring)
sEveRLSDChange of RLSD status
sEveTransmitCompletedThe output buffer is empty
Remarks

Closing the port

When closing the port, all the events managed on this port are disabled. When re-opening the port, sEvent must be re-run to define the events managed on this port.
Business / UI classification: Business Logic
Component: wd300com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help