SET DEVICE
SET DEVICE PRINT | SCREENSelects output destination in historical eAdvPL.
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.)
Syntax
SET DEVICE PRINT | SCREENReturn value
No useful return documented in this subset.
Commented example
// Historical eAdvPL fragment: finish owned output before switching.
SET DEVICE SCREENRequests screen output in the documented variant. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- 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.

Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.