Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

Roda

Roda([uPar1],[uPar2],[cTamanho]) -> Nil

Prints the footer of a legacy report.

RodaAdvPL
01 · OVERVIEW

Overview

The historical reference presents Roda with two reserved arguments and size P, M or G, default M. It belongs to an already prepared printing flow with headers, pagination and output destination; it does not create a report by itself. The block shows size G without printing. For new code, evaluate release-supported reporting instead of carrying global state from old samples. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

Roda([uPar1],[uPar2],[cTamanho]) -> Nil

Parameters

uPar1
UndeterminedOptional

Reserved in manual; omit.

uPar2
UndeterminedOptional

Reserved in manual; omit.

cTamanho
CharacterOptional

P, M or G; historical default M.

Return value

Nil according to historical manual.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed632()
    // Requires a prepared legacy report; do not invoke here.
    Local bFooter := {|| Roda(,,"G")}
    ConOut(ValType(bFooter))
Return Nil
Expected result

Creates block B; generates no spool and sends no print job. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Do not mix UI, spool and unattended execution contexts.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. AdvPL — O Manual. Referência histórica, p. 371. Contrato atual não homologado. Accessed on 2026-10-27.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha