CodeCop Warning AA0224
The count of option captions specified in the OptionCaption property is wrong.
Description
The count of option captions specified in the OptionCaption property is wrong.
Remarks
The number of option captions specified in the OptionCaption property must match the number of option values available for a variable or a field on a page or report.
Example
The following code sample will raise a warning because the number of option values available for the page field "VAT Posting"
is two, while only one option caption is defined in the OptionCaption property.
page 50100 MyPage
{
layout
{
area(Content)
{
field("VAT Posting"; postingOptions)
{
OptionCaption = 'Automatic VAT Entry';
}
}
}
var
postingOptions: Option "Automatic VAT Entry" , "Manual VAT Entry";
}
See Also
CodeCop Analyzer
OptionCaption Property
Get Started with AL
Developing Extensions
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de