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 / 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
Pushes an element onto the stack. The element is inserted at the top of the stack.
New in version 2025
WEBDEV - Browser code This function is now available in browser code.
Example
MyStack is Stack of int

// Push the values 1, 2 and 3
Push(MyStack, 1)
Push(MyStack, 2)
Push(MyStack, 3)

// Display the trace: 3, 2, 1
x is int
WHILE Pop(MyStack, x)
	Trace(x)
END
Syntax
Push(<Stack> , <Value>)
<Stack>: Stack variable
Name of the Stack variable to be used.
<Value>: Type of elements handled by the stack
Value that will be added at the top of the stack.
Remarks

Multithreading operating mode

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

Last update: 10/23/2024

Send a report | Local help