cChaveSearch key matching the active index.
AdvPL GuideMsSeek(cChave,[lSoft]) -> lFoundPositions records using the active index key.
Requires an open area and suitable index. MsSeek reuses positioning information within the thread for repeated searches; this is not a global cache across jobs. The key must match index types, widths and components, including branch when applicable. The official reference mixes approximate-search wording in lSoft and examples; if exact matching is required, compare key fields after the call instead of relying solely on the logical result. (Sources: refs. 1–1.)
MsSeek(cChave,[lSoft]) -> lFoundcChaveSearch key matching the active index.
lSoftApproximation/positioning behavior; verify against the release and tests.
Logical result used by official examples; inspect fields to validate full equality.
#Include "Protheus.ch"
User Function Ed551()
// Requires a prepared work area/index; block not invoked.
Local bFind := {|cKey| MsSeek(cKey)}
ConOut(ValType(bFind))
Return NilPrints B. The uninvoked block moves no cursor. 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.