ADVPL & TLPP Fundamentals

•
13
•

Enforces coding standards, Hungarian notation, and naming conventions for TOTVS Protheus ADVPL and TLPP development.

This skill provides Claude with the essential guardrails and best practices for the TOTVS Protheus ecosystem. It covers mandatory Hungarian notation, critical 10-character identifier limits in legacy code, and the specific scoping rules for Local, Static, Private, and Public variables. By identifying over 195 restricted functions and protecting reserved system variables like cFilAnt, this skill helps developers avoid silent bugs, variable shadowing, and RPO collisions while ensuring high-quality, maintainable Protheus source code.

주요 기능

01Flags the use of restricted internal TOTVS functions and reserved system variables.
02Prevents 10-character identifier collisions in legacy .prw and .prx files.
03Enforces mandatory Hungarian notation prefixes (c, n, d, l, a, o, b, x, u) for all variables.
0413 GitHub stars
05Provides a decision matrix for correct variable scoping to avoid memory leaks and shadowing.
06Standardizes User Function naming conventions to prevent collisions in the RPO.

사용 사례

01Identifying and fixing variable shadowing errors involving reserved system variables like cFilAnt or cEmpAnt.
02Generating new User Functions or Points of Entry with correct customer prefixes and Protheus.doc headers.
03Refactoring legacy ADVPL code to comply with modern TLPP standards and naming conventions.