PARAMIXB[1]Number of the aCols line currently being validated.
Default:
AdvPL GuideMA261LIN( <PARAMIXB> ) --> lRetValidates each transfer line entered in the MATA261 browse.
MA261LIN is an entry point of the Transfer Model 2 routine (MATA261), located at the end of A261LinOk(). It allows additional validations to run for each transfer line entered in the browse. When it returns .T., the line is accepted; when it returns .F., validation fails and the user should correct the issue before continuing.
MA261LIN( <PARAMIXB> ) --> lRetPARAMIXB[1]Number of the aCols line currently being validated.
Default:lRet, logical. Return .T. to allow the transfer line to be included. Return .F. to reject the line and prevent continuation until the issue is corrected.
#Include "TOTVS.ch"
User Function MA261LIN()
Local lRet := .T.
Local nLine := PARAMIXB[1] // aCols line number
// Additional user validations.
// Example: inspect fields from nLine before allowing the transfer.
Return lRetThe function receives the line under validation through PARAMIXB[1], runs additional rules and returns .T. to accept or .F. to reject the line.
#Include "TOTVS.ch"
User Function MA261LIN()
Local lRet := .T.
Local nLine := PARAMIXB[1]
If Empty(nLine)
MsgAlert("Unable to identify the transfer line.", "MATA261 validation")
lRet := .F.
EndIf
Return lRetThe example shows the return logic: when the rule finds an inconsistency, it displays a message and returns .F. to stop validation of the line.
© 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.