Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 1.6 KB

File metadata and controls

46 lines (37 loc) · 1.6 KB
title description ms.author ms.date ms.topic author ms.reviewer
CodeCop Warning AA0074
TextConst and Label variable names should have a suffix (an approved three-letter suffix: Msg, Tok, Err, Qst, Lbl, Txt) describing usage.
solsen
05/14/2024
reference
SusanneWindfeldPedersen
solsen

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;

See also

CodeCop Analyzer
Get started with AL
Developing extensions