ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Queue, stack, list and array functions / Queue, stack and list functions
  • Multithreading operating mode
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
<Queue variable>.Enqueue (Function)
In french: <Variable File>.Enfile
Adds an element to the queue. The element is added at the end of the queue.
New in version 2025
WEBDEV - Browser code This function is now available in browser code.
Example
MyQueue is Queue of int
 
// Enqueue the values 1, 2 and 3
MyQueue.Enqueue(1)
MyQueue.Enqueue(2)
MyQueue.Enqueue(3)
 
// Display the trace: 1, 2, 3
x is int
WHILE MyQueue.Dequeue(x)
Trace(x)
END
Syntax
<Queue>.Enqueue(<Value>)
<Queue>: Queue variable
Name of the Queue variable to be used.
<Value>: Type of elements handled by the queue
Value that will be added at the end of the queue. All types of variables can be used EXCEPT for the arrays, the associative arrays, the queues, the stacks and the lists.
Remarks

Multithreading operating mode

If the AdditionCompleted property is set to True, <Queue variable>.Enqueue fails and causes a WLanguage error.
WEBDEV - Browser code Multithreading is not available.
Component: wd300vm.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/22/2024

Send a report | Local help