What AdvPL is and where it is used
Learn about the language, its place in Protheus, and the path from a source file to execution.
Without signing in, progress is saved in this browser.
Objectives
Learn about the language, its place in Protheus, and the path from a source file to execution.
- explain what AdvPL is
- identify its relationship with Protheus
- recognize common development scenarios
- distinguish source, compilation, repository, and execution
Origins and evolution
AdvPL stands for Advanced Protheus Language. It evolved from Microsiga’s experience with xBase technologies and the need to preserve and extend Protheus business applications.
Historical sources identify different milestones for its evolution and formal release. The timeline is therefore best understood as a process.
From source to execution
Where it is used
First contact with code
This example introduces a user function, a local variable, a message call, and the end of the routine.
#Include "TOTVS.ch"\n\nUser Function HelloAdvPL()\n Local cMessage := "Hello! This is my first contact with AdvPL."\n\n MsgInfo(cMessage, "AdvPL Training")\nReturnPractical activity
Change the message to include your name and state that you started AdvPL training. Then compare it with the suggested solution.
Suggested solution
#Include "TOTVS.ch"\n\nUser Function MyIntroduction()\n Local cName := "Alex"\n Local cMessage := "Hello, " + cName + ;\n "! You started AdvPL training."\n\n MsgInfo(cMessage, "First activity")\nReturnKnowledge check
Lesson completed! You earned “First contact with AdvPL”.
References
- MICROSIGA. Programação em ADVPL Completo. Educação Corporativa, 2009.
- SILVA, Waterloo Ferreira da. A Linguagem AdvPL. 2004, p. 11.
- TOTVS. AdvPL. TDN.
