Previous Topic

Next Topic

MaxBasic Functions

A function is a routine that returns a value of a specific type. This value can be used in an expression, and the function call can be embedded in an expression. A function can take a number of parameters that are used to compute the return value. A function parameter is shown in italics. Optional parts for parameters are shown in square brackets []. In the script editor functions are grouped by type. Some functions are specific to the context you are working in, for example, automation, report writer and DI specific functions. The function groups are:

Function Group

Description

Availability

Accounting

Accounting automation functions

Automation script editor only

Application

Functions relating to the application state

All editors

Array

Manipulate or return information on arrays

All editors

Boolean

Return true / false values

All editors

Company

Manipulate Company information

All editors

Date

Manipulate and return dates

All editors

Environment

Manipulate or return information from the operating environment

All editors

Foreign Exchange

FX functions

All editors

General Ledger

For GL financial reporting

GL Financial Report Designer script editor only

GST

For obtaining GST rates and calculating GST

All editors

Import

Used in EDI import scripts and Price Book Designer

EDI Import script editor and Price Book Designer

Import / Export

To perform EDI exports or imports

Automation script editor only

Input

Prompt the User for input and return the result

All editors

Number

Manipulate numbers

All editors

Objects

Manipulate Accredo objects

All editors

Period

Manipulate and work with period IDs

All editors

Report

Report and document specific functions

Report and Document design script editors

Script

Automation specific functions

Automation script editor only

String

Manipulate strings

All editors

System

Functions regarding system logins

All editors

Tables

Manipulate Accredo tables

All editors

User

Manipulate User information

All editors

Web

OAuth2, JSON, HTML and Encoding functions

All Editors

In This Section

Accounting Functions

Application Functions

Array Functions

Boolean Functions

Company Functions

Date Functions

Environment Functions

Foreign Exchange Functions

General Ledger Functions

GST Functions

Import Functions

Import/Export Functions

Input Functions

Number Functions

Objects Functions

Period Functions

Report Functions

Script Functions

String Functions

System Functions

Tables Functions

User Functions

Web Functions

See Also

MaxBasic

Book Contents

Book Index