Reader's Clinic - Changing from LPT1 to LPT2 in RBASIC
RTP Series - RTP1
VERBatim - V20
File Variables
DOS Interfacing (Part II)
Reader's Clinic - Changing from LPT1 to LPT2 in RBASIC
REVMEDIA Revisited
Merge Processor
QTIPS - Using INIT.VIEW with Printers
@ATTACK - @PDisk.On
QTIPS - DOS File Names
DOS Interfacing (Part II)
VERBatim - V116
@ATTACK - @Pri.File
@ATTACK - @Rollout.File
File Variables
How Indexes Are Updated
Index Record Layouts
QTIPS - File Variable of File In SELECT Statement
QTIPS - Amending non-Attached Files
LINEAR HASH FILE STRUCTURES - Part 1
Index Flush
QTIPS - File Handle Structure
Reader's Clinic - Changing from LPT1 to LPT2 in RBASIC
RTP Series - RTP9
RTP Series - RTP50
VERBatim - V25
@ATTACK - @Files
Utility Diskette # 3 - Part I
@ATTACK - @Modal
Reader's Clinic - Page Marks in Windows

RevMedia FKB

DocumentV2I3A1
TitleReader's Clinic - Changing from LPT1 to LPT2 in RBASIC
KeywordsSETPTR
LPT1
LPT2
TextBoth Patrick Collins of Softsolve Computer SYSTEMS and Jonathan Bird of
Argyle Fabrics asked the same question recently "How can one change from
LPT1 to LPT2 FROM within RBASIC?"

The solution to this is straightforward and covered already (albeit
indirectly) in REVMEDIA 6:4 RevTech ALSO referred me back to SETPTR

As previously documented the SETPTR routine redirects printer i/o to a
nominated file To DOS LPT1 and LPT2 are reserved filenames and to all
intents and purposes can be treated as files Thus to change to LPT2 simply

CALL SETPTR("LPT2" : CHAR(0) 1)

and to change back to LPT1

CALL SETPTR("LPT1" : CHAR(0) 1)


(Volume 2 Issue 3 Page 3)
[revmedia/copyrigh.htm]

Page last modified: 08/02/03