編集

次の方法で共有


CodeCop Warning AA0074

TextConst and Label variable names should have an approved suffix.

Description

TextConst and Label variable names should have a suffix (an approved three-letter suffix: Msg, Tok, Err, Qst, Lbl, Txt) describing usage.

Remarks

Three-letter suffix Meaning
Msg Message
Tok Token
Err Error
Qst StrMenu or Confirm
Lbl Label, Caption
Txt Text

Note

The Tok suffix is generally used for short tokens such as "GET", "PUT", "HTTPS" etc. Furthermore, the variable name should align with the label itself, for example, GetTok, PutTok and HttpsTok. In general, these tokens should have the Locked = true; set so that they're not translated.

Example

// Label suffixed with Tok for Token
GetTok: Label 'GET', Locked = true;

CodeCop Analyzer
Get started with AL
Developing extensions