X++ Function Categories and their Functions

Dynamics AX 2009

This topic describes X++ categories and their functions.

The following table lists the categories and then describes the related functions. These categories are helpful groupings but they are not represented by any construct in Microsoft Dynamics AX.

Category

Description

Business

Functions that input financial data and calculate formulas.

Compiler Verified

(also named Intrinsic)

Functions that have their input value verified by the compiler. If the input value is not found to match any existing object in the Application Object Tree (AOT), the compiler issues an error.

The inputs to these functions must be literals, because the compiler cannot determine the value that a variable contains at run time.

Container

Functions that operate on the container data type of X++.

Convert

Functions that translate data of one type into data of another type.

Date

Functions that operate on the date data type.

Enum

Functions that operate on enum objects.

Math

Functions that perform mathematical calculations.

Miscellaneous

Functions that do not belong to any specific category.

Reflection

Functions that access the metadata about objects and return other metadata about them.

Session

Functions that change or report on the context of the current user connection.

String

Functions that operate on the str data type.

The following table lists the X++ functions that belong in each previous category.

Category

X++ function

Business

  • cterm

  • ddb

  • dg

  • fv

  • idg

  • intvmax

  • intvname

  • intvno

  • intvnorm

  • pmt

  • pt

  • pv

  • rate

  • sln

  • syd

  • term

  • ultimoyr

Compiler Verified

(also named Intrinsic)

  • classnum

  • classstr

  • configurationkeynum

  • configurationkeystr

  • datasetstr

  • enumnum

  • enumstr

  • evalbuf

  • extendedTypeNum

  • extendedTypeStr

  • fieldnum

  • fieldpname

  • fieldstr

  • formstr

  • helpapplstr

  • helpdevstr

  • helpfilestr

  • identifierstr

  • indexnum

  • indexstr

  • licensecodestr

  • literalstr

  • menuitemactionstr

  • menuitemdisplaystr

  • menuitemoutputstr

  • menustr

  • methodstr

  • querystr

  • reportstr

  • resourcestr

  • runbuf

  • securitykeynum

  • securitykeystr

  • staticmethodstr

  • tablecollectionstr

  • tablefieldgroupstr

  • tablemethodstr

  • tablenum

  • tablepname

  • tablestaticmethodstr

  • tablestr

  • varstr

  • webactionitemstr

  • webdisplaycontentitemstr

  • webformstr

  • webletitemstr

  • webmenustr

  • weboutputcontentitemstr

  • webpagedefstr

  • webreportstr

  • websitedefstr

  • websitetempstr

  • webstaticfilestr

  • weburlitemstr

  • webwebpartstr

  • workflowapprovalstr

  • workflowcategorystr

  • workflowtaskstr

  • workflowtemplatestr

Container

  • condel

  • confind

  • conins

  • conlen

  • connull

  • conpeek

  • conpoke

Convert

  • any2enum

  • any2FDate

  • any2guid

  • any2int

  • any2int64

  • any2real

  • any2str

  • char2num

  • FDate2num

  • FDate2str

  • FDatetime2str

  • formattedstr2num

  • guid2str

  • int2str

  • int642str

  • num2char

  • num2FDate

  • num2str

  • str2enum

  • str2FDate

  • str2FDatetime

  • str2guid

  • str2int

  • str2int64

  • str2num

  • str2time

  • time2str

  • uint2str

Date

  • dayname

  • dayofmth

  • dayofwk

  • dayofyr

  • endmth

  • maxFDate

  • mkFDate

  • mthname

  • mthofyr

  • nextmth

  • nextqtr

  • nextyr

  • prevmth

  • prevqtr

  • prevyr

  • primoyr

  • timenow

  • today

  • wkofyr

  • year

Enum

  • enum2str

  • enumcnt

Math

  • abs

  • acos

  • asin

  • atan

  • corrflagget

  • corrflagset

  • cos

  • cosh

  • decround

  • exp

  • exp10

  • frac

  • log10

  • logn

  • power

  • round

  • sin

  • sinh

  • tan

  • tanh

  • trunc

Miscellaneous

  • beep

  • classidget

  • dimof

  • getprefix

  • max

  • maxint

  • min

  • minint

  • newguid

  • setprefix

  • sleep

  • systemFDateget

  • systemFDateset

Reflection

  • fieldid2name

  • fieldid2pname

  • fieldname2id

  • indexid2name

  • indexname2id

  • refprintall

  • tableid2name

  • tableid2pname

  • tablename2id

  • typeid

  • typeof

Session

  • curext

  • curuserid

  • FSessionid

  • funcname

  • prmisdefault

  • runas

String

  • match

  • stralpha

  • strcmp

  • strcolseq

  • strdel

  • strfind

  • strfmt

  • strins

  • strkeep

  • strlen

  • strline

  • strltrim

  • strlwr

  • strnfind

  • strpoke

  • strprompt

  • strrem

  • strrep

  • strrtrim

  • strscan

  • strupr

  • substr

Community Additions

ADD
Show: