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
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
<Stack variable>.Push (Function)
In french: <Variable Pile>.Empile
Pushes an element onto the stack. The element is inserted at the top of the stack.
Example
MyStack is Stack of int
 
// Push the values 1, 2 and 3
MyStack.Push(1)
MyStack.Push(2)
MyStack.Push(3)
 
// Display the trace: 3, 2, 1
x is int
WHILE MyStack.Pop(x)
Trace(x)
END
Syntax
<Stack>.Push(<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, <Stack variable>.Push fails and causes a WLanguage error.
Component: wd290vm.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help