cApelidoNickname already registered in the area.
AdvPL GuideDBOrderNickname( cApelido ) --> lRetSelects an order by its registered nickname.
The nickname must have been associated with the order through DBSetNickname. It is neither a field name nor a universal Protheus nickname. The reference describes a logical return and an error message when absent; false is not a guaranteed silent failure. This fragment requires caller-defined cNickname and an order previously registered on EDTRB. EDTRB identifies only an owned test table already open with the required schema and permissions; examples are not intended for standard tables. (TOTVS, n.d., ref. 1)
DBOrderNickname( cApelido ) --> lRetcApelidoNickname already registered in the area.
Logical: true when selected; a missing nickname may emit an error.
#Include "Protheus.ch"
User Function Ed335()
// Fragment: cNickname comes from the caller contract.
If Select("EDTRB") > 0
ConOut(cValToChar(EDTRB->(DBOrderNickname(cNickname))))
EndIf
Return NilSelects the existing order; requires the stated context, not self-contained. 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.