Cicode Programming Reference > Cicode Function Categories > Page Functions Introduction > PagePopLast

PagePopLast

Gets the Page Name of the last item on the PageLast stack and removes the page from the stack.

Note: This function is not supported in the server process in a multiprocessor environment. Calling this function from the server process results in a hardware alarm being raised.

Syntax

PagePopLast()

Return Value

The page name or an empty string if there is no last page.

Related Functions

PageLast, PagePeekCurrent, PagePeekLast, PagePopUp, PagePushLast

Example

PageDisplay("MIMIC1");
! Displays page "MIMIC1".
PageDisplay("MIMIC2");
/* Displays page "MIMIC2" and places page "MIMIC1" onto the PageLast stack. */
PageDisplay("10");
! Displays page "10" and places page "MIMIC2" onto the PageLast stack.
Variable=PagePopLast();
/* Sets Variable to "MIMIC2" and removes "MIMIC2" from the PageLast stack. */
PageLast();
! Displays page "MIMIC1".

See Also

Page Functions