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
Commentaires
https://aka.ms/ContentUserFeedback.
Prochainement : Tout au long de l'année 2024, nous supprimerons progressivement les GitHub Issues en tant que mécanisme de retour d'information pour le contenu et nous les remplacerons par un nouveau système de retour d'information. Pour plus d’informations, voir:Soumettre et afficher des commentaires pour