aAreaSnapshot from GetArea with unchanged structure.
AdvPL GuideRestArea(aArea)Restores alias, order and position saved by GetArea.
RestArea consumes the GetArea array and restores alias, IndexOrd and Recno. The last restored area becomes active. It does not automatically reopen closed areas or restore every possible state, such as transactions, company environment or filters outside this contract. Save a second area separately if you change it, and restore the original area last. Evaluate FWGetArea/FWRestArea for the release framework. (Sources: refs. 1–2.)
RestArea(aArea)aAreaSnapshot from GetArea with unchanged structure.
Unused; selected reference specifies no useful return.
#Include "Protheus.ch"
User Function Ed620()
// Uninvoked block: requires an open area that has been preserved.
Local bRestore := {|aArea| RestArea(aArea)}
ConOut(ValType(bRestore))
Return NilCreates block B without inventing an area snapshot. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.