HP3000-L Archives

January 1997, Week 5

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:
"Dr. Ferenc Nagy" <[log in to unmask]>
Reply To:
Dr. Ferenc Nagy
Date:
Thu, 30 Jan 1997 10:17:49 +0100
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (40 lines)
Hi Roy:
Look at the folowing UDC. IF I invoke it with an existing file then I
get no echo, as I want If I invoke it with an non-existing file then I
get two lines on the screen but I need only the JCW setting withot echo.
How can I suppress these two lines?
 :help exists
 USER DEFINED COMMAND
 exists file,jc=exists
 option nolist,help
 setjcw cierror=0
 continue
 listf !file;$null
 if cierror=907 then
    setjcw !jc=0
 els
    setjcw !jc=1
 endi


 :exists nonexfil
 LISTF NONEXFIL;$NULL
 NON-EXISTENT FILE.  (CIERR 907)

 :exists userproc

                TIA
                                              Frank

  |\  /~ ~~|~~~ Family : NAGY; first name : FERENC; title : Ph. D.
  | \ |   -+-   Institute of Isotopes of the Hungarian Academy of Sciences
  |  \|    |    1121 BUDAPEST Konkoly-Thege M. ut 29, HUNGARY (1525 Bp. POB 77)
`-'   '  `-'    E-mail : [log in to unmask]

Fax: (36)-1-395-9002, work phone: (36)-1-395-9123, home phone: (36)-1-277-4229.
            ^NEW!                        ^NEW!
Home address: H-1214 BUDAPEST Raketa u. 29. I. 3.

There are 3 kinds of programming errors:  syntactical, semantical and mystical.
The programmers have to suck up the users just as much as absolutely necessary.

ATOM RSS1 RSS2