nOrdemOrder; zero or omitted means current.
AdvPL GuideIndexKey([nOrdem]) -> cExprObtains an index key expression.
Zero or omitted nOrder reads the current index; missing index order returns an empty string. An unopened area can raise Work area not in use. The returned expression describes the key rather than its value in the record. (Sources: refs. 1–1.) The community positioning example also illustrates GetArea/RestArea and explicit index selection; it does not determine the order in every environment.
IndexKey([nOrdem]) -> cExprnOrdemOrder; zero or omitted means current.
Key expression or empty string.
#Include "Protheus.ch"
User Function Ed486()
// Read only, without creating or changing indexes.
If !Empty(Alias())
ConOut(cValToChar(IndexKey(0)))
EndIf
Return NilDisplays current-area metadata when an area is open. 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.