ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Serial/Parallel Ports functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Retrieves the number of pending bytes in the input buffer of a specified serial port or infrared port.
Remarks:
  • This function cannot be used with a parallel port.
Example
// The port is opened. Retrieves the number of pending bytes
// in the input buffer of COM4 and read them.
PortNum is int
PortNum = sOpen("COM4", 2000, 2000)
Number is int
MessageRead is string
Number = sInEntryQueue(PortNum)
MessageRead = sRead(PortNum, Number)
// Equivalent to: MessageRead = sRead(PortNum, sInEntryQueue(PortNum))
Syntax
<Result> = sInEntryQueue(<Port number>)
<Result>: Integer
  • Number of pending bytes in the input buffer of the specified port,
  • 0 if the function failed. The ErrorOccurred variable is set to True if an error occurred on the port (parity bit for example). The error details are returned by ErrorInfo.
<Port number>: Integer
Port number to use:
  • Number of the serial port: 1, 2, 3, ... 32 for COM1, COM2, COM3, ... COM32.
  • Number of the infrared port: 1, 2, 3, ... 32 for IR1, IR2, IR3, ... IR32.
  • Port number returned by sOpen (if this function was called with a port name).
Remarks
Business / UI classification: Business Logic
Component: wd290com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help