次の方法で共有


Name Property

Sets the name of the object. The name is used for internal identification of the objects, controls, and other elements in C/AL code and the development environment.

Applies To

  • Codeunits

  • Fields

  • Menu items

  • Pages

  • Queries

  • Reports

  • Tables

  • XMLports

Remarks

Unlike the ID Property, the value of the Name property does not have to be unique; however, it is a good practice to use unique names. The Name can be up to 30 characters long. The name must comply with the Common Language Specification (CLS). For example, the first character must be a letter and subsequent characters can be any combination of letters, whole number, and underscores. For more information, see the "Naming" section in Common Language Specification in the MSDN Library.

When you use the Name in C/AL code, it is automatically converted to the value of the ID Property when the C/AL code is compiled.

For report, page, XMLport, and query objects, the name is the default for the Caption Property.

For controls, the default name is based on the ID.

See Also

Reference

ID Property
Caption Property