{"title":"CodeCop Warning AA0074","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/codecop-aa0074/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/analyzers/codecop-aa0074, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/analyzers/codecop-aa0074","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"TextConst and Label variable names should have a suffix (an approved three-letter suffix: Msg, Tok, Err, Qst, Lbl, Txt) describing usage.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"CodeCop Warning AA0074","slug":"codecop-warning-aa0074","at":0,"chars":895},{"level":2,"title":"Description","slug":"description","at":92,"chars":153},{"level":2,"title":"Remarks","slug":"remarks","at":245,"chars":419},{"level":2,"title":"Example","slug":"example","at":664,"chars":94},{"level":2,"title":"Related information","slug":"related-information","at":758,"chars":137}],"text":"# CodeCop Warning AA0074\nTextConst and Label variable names should have an approved suffix.\n## Description\nTextConst and Label variable names should have a suffix (an approved three-letter suffix: Msg, Tok, Err, Qst, Lbl, Txt) describing usage.\n## Remarks\nThree-letter suffix|Meaning\nMsg|Message\nTok|Token\nErr|Error\nQst|StrMenu or Confirm\nLbl|Label, Caption\nTxt|Text\n> NOTE\n> 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.\n## Example\n```al\n// Label suffixed with Tok for Token\nGetTok: Label 'GET', Locked = true;\n```\n## Related information\nCodeCop Analyzer<codecop>\nGet started with AL<../devenv-get-started>\nDeveloping extensions<../devenv-dev-overview>"}