Export (0) Print
Expand All
Expand Minimize

C/AL Locals

Microsoft Dynamics NAV 2013

Declares local variables and text constants in Microsoft Dynamics NAV. Local variables can only exist in the scope of triggers or functions. For more information about variables, see C/AL Variables.

To open this window, on the Tools menu, choose Object Designer, choose Codeunit, and then on the View menu, choose C/AL Locals.

You can also open the C/AL Globals window, choose the Functions tab, and then choose the Locals button. For more information about how to open the C/AL Globals windows, see C/AL Globals.

Parameters Tab

Field Description

Var

The parameter is either passed by value or by reference.

Name

The name of the parameter.

DataType

The data type of the parameter.

SubType

Additional information about the parameter. For example, a Page data type may have a table as the subtype.

Length

The length of the parameter. For example, if the parameter is a Text DataType, then the text might have a length of 50.

Return Value Tab

Field Description

Name

The name of the return value.

Return Type

The data type of the return value.

Length

The length of the return value. For example, if the return value is a Text DataType, the text might have a length of 50.

Variables Tab

You can declare local user-defined variables.

Field Description

Name

The name of the variable.

DataType

The data type of the variable. For more information, see C/AL Data Types.

SubType

The type of data that is stored in a variable. SubType contains additional information about a data type. For example, a Report data type might have the Customer table as a subtype.

Length

The length of the characters in the field. For example, a Text data type might have a length of 100. This applies to Code and Text data types.

Text Constants Tab

A text constant is a character string that is declared to enable translation of messages into other languages.

Field Description

Name

The name of the text constant.

ConstValue

The value of the character string that is declared as a constant. You can open the Multilanguage Editor window by choosing the AssistEdit button in the ConstValue field.

See Also

Reference

C/AL Globals

Show:
© 2014 Microsoft