Tutorial

Getting Started with Macros

Macro Editor

User Interface

Menus and Toolbar

Editing Macros

Macro Debugging

How To

Using variables

Finding and modifying objects

Creating new page content

Asking for user input

Storing persistent data

Using binary data

Sorting objects

Macro menus

Bulleted and numbered lists

Sample Macros

Concepts

Expressions

Objects

Properties

Variables

Data Types

Arrays

Functions

Literals

Operators

Comments

Last updated on: September 02, 2024
Also available as a single HTML file

Onetastic Macro Documentation > Functions > Array Functions > Array_PopBack

Array_PopBack

Removes and returns the last element in the array. To use an array as a stack, use this function along with Array_PushBack.

Syntax

Mixed Array_PopBack(byref Array array)

Parameters

Array array
Array to remove and return the the last element from.

Examples

$array = Array(6, 4, 8, 10, 12) $lastElement = Array_PopBack($array) $previousElement = Array_PopBack($array) // $array is now (6, 4, 8) // $lastElement is 12 // $previousElement is 10

Reference

Statements

Hierarchy Objects

Page Objects

Other Objects

Functions

Array Functions

Color Functions

Data Store Functions

Date/Time Functions

Dialog Box Functions

Macro Execution Functions

Macro Menu Functions

Object Functions

Special Functions

String Functions

Window Functions