HP3000-L Archives

February 1997, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Korb <[log in to unmask]>
Reply To:
John Korb <[log in to unmask]>
Date:
Tue, 11 Feb 1997 19:14:24 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
I don't have an intrinsics manual handy, but if I remember correctly, the
FFILEINFO intrinsic has options for returning the device TYPE and SUBTYPE of
a file you have opened.  I seem to remember using such a method to make sure
I was opening a terminal device (which I remember as having TYPE=16).

I'm guessing that you could set up a file equation specifying the device in
question, then FOPEN the file (or even specify the device name in FOPEN),
then call FFILEINFO to determine the device TYPE and SUBTYPE.  Printers
should have their own TYPE and so should be easy to identify.  To find out
the device type, run a test program that specifies LP and then displays the
TYPE and SUBTYPE.

The drawback to using such an approach would be that if you have opened a
file in a spooled print class, you now have an open spoolfile.

John
--------------------------------------------------------------
John Korb                            email: [log in to unmask]
Innovative Software Solutions, Inc.

The thoughts, comments, and opinions expressed herein are mine
and do not reflect those of my employer(s), or anyone else.

ATOM RSS1 RSS2