Udostępnij za pośrednictwem


Multiple variable declarations of the same type in the same line

Important

This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.

Enabled for Public preview General availability
Admins, makers, or analysts, automatically This feature is released. Feb 1, 2020 This feature is released. Apr 1, 2020

Business value

Until now, each variable had to be declared on its own line. In larger objects, this led to pages of variable declarations, even if most of these were of the same type.

To reduce scrolling, improve readability, and make it easier to see and declare related types, it is now possible to add multiple variable declarations of the same type in a singular line.

Feature details

Declare multiple variables of the same type in the same line, using a comma to separate variable names. For example, "foo, bar : Integer;"

See also

Variable declarations (docs)