datasetStr Function

Dynamics AX 2009

Retrieves the name of a data set as a string.


str datasetStr(dataset dataset)

Parameter

Description

dataset

A data set defined in the AOT.

The name of the data set.

Use this function instead of literal text to retrieve a string that contains the data set name. If the data set does not exist, the function generates a syntax error at compile time.

The following example assigns the name of the data set CustomerList to Dataset_Name.

str Dataset_Name;
;
Dataset_Name = datasetStr(CustomerList);

Community Additions

ADD
Show: