Subject: | |
From: | |
Reply To: | |
Date: | Thu, 30 Jan 1997 16:18:50 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
On Jan 30, 10:17am, Dr. Ferenc Nagy wrote:
> Subject: Stop echo of error messages
> 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
> else
> setjcw !jc=1
> endif
>
> :exists nonexfil
> LISTF NONEXFIL;$NULL
> NON-EXISTENT FILE. (CIERR 907)
>....
You need to set the HPMSGFENCE variable to 2 to supress the printing of
error messages.
Steve Fulton [log in to unmask]
ISL International Surveys Ltd.
Willowdale, Ont., Canada
"Things are never so bad that they can't get worse."
|
|
|