Usina BRAdvPL Guide
Sign in
← All topics
COMMANDUnder review

SET DEVICE

SET DEVICE PRINT | SCREEN

Selects output destination in historical eAdvPL.

SET DEVICEAdvPL
01 · OVERVIEW

Overview

Historical eAdvPL reference, section 1.3. Syntax depends on that implementation’s macros and platform; current SmartClient support is unconfirmed. The guide records PRINT and SCREEN. Other AdvPL dialects use SET DEVICE TO PRINTER; check includes before mixing variants. Destination selection does not configure drivers, document opening, pagination or spool. This subset only returns to screen; it neither implements printing nor closes caller-owned resources. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

SET DEVICE PRINT | SCREEN

Return value

No useful return documented in this subset.

03 · PRACTICAL EXAMPLE

Commented example

// Historical eAdvPL fragment: finish owned output before switching.
SET DEVICE SCREEN
Expected result

Requests screen output in the documented variant. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Verify includes and graphical context in the target release. The fragment assumes the stated objects; it is not a complete application. Do not use in headless execution.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. Guia de referência eAdvPL. §1.3. Cópia pública histórica, consultada nas seções citadas. Accessed on 2026-10-28.
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