Avoid display of warnings and program results

  • Thread starter sridhartv25@gmail.com
  • Start date
S

sridhartv25@gmail.com

Guest
Hello all,
I want to avoid displaying of warnings and the program results when I
load my skill script.
For this in the options->logfilter form I can uncheck the options
"program results" and the "warnings" ,
but how to implement through skill and after loading the script , the
log filter form options must be changed back to its orginal values.
Thanks &
Regards,
Sridhar.
 
Sridhar,

I don't think it is a good idea to hide these information.
If you are really annoyed by these warnings, messages, you better
redirect them into a user logFile rather than the default CIW. You
could do so by setting up poport and errport variables in your skill
code, something like:
; Skill code
poport = errport = outfile(myLogFile)
..... do all your skill commands
; get back to the CIW log file
poport = stdout
errport = stderr

If you are really keen to follow your thoughts, then the answer for
your question is to alter the skill 'ui' env variables 'warningMsg'
and 'progResultsOutput'. You need to switch them back and forth
between t/nil as your code evolves. Something similar to:

envSetVal("ui" "warningMsg" 'boolean nil)
envSetVal("ui" "progResultsOutput" 'boolean nil)

Needless to remind you that all of these are in the Skill docs that
you should read one day ... :)

Cheers,
Riad.
 
In article <7aa65876-a93d-44a8-b3a7-9d533591a938@s16g2000vbp.googlegroups.com> "sridhartv25@gmail.com" <sridhartv25@gmail.com> writes:
Hello all,
I want to avoid displaying of warnings and the program results when I
load my skill script.
For this in the options->logfilter form I can uncheck the options
"program results" and the "warnings" ,
but how to implement through skill and after loading the script , the
log filter form options must be changed back to its orginal values.
Assuming you are starting with the default settings ("user" "program results"
"errors" "warnings"), use:

hiSetFilterOptions( nil nil nil nil t t nil )

to turn off program results and warnings (leaves only "user" and "errors"
selected), and:

hiSetFilterOptions ( nil nil t nil t t t )

to restore back.

I'm assuming you are using IC 5.1.41. To get the current values for the
settings in the order they are supplied to hiSetFilterOptions, use:

MenuCommandsInput = envGetVal("ui" "menuCmdInput")
Prompts = envGetVal("ui" "promptInput")
ProgramResults = envGetVal("ui" "progResultsOutput")
MenuCommandsOutput = envGetVal("ui" "menuCmdOutput")
User = envGetVal("ui" "userOutput")
Errors = envGetVal("ui" "errorMsg")
Warnings = envGetVal("ui" "warningMsg")

If you are using IC 6.1, the envvar names have been changed, and the
descriptions for the arguments to hiSetFilterOptions have been changed.
The options in the same order for IC 6.1 are (the argument order for
hiSetFilterOptions is the same, just the names were changed to make more
sense and to match the descriptions in the new log filter form):

AcceleratedInput = envGetVal("ui" "accelInput")
PromptOutput = envGetVal("ui" "promptOutput")
StandardOutput = envGetVal("ui" "standardOutput")
AcceleratedReturnValues = envGetVal("ui" "accelReturnValue")
TypedReturnValues = envGetVal("ui" "typedReturnValue")
ErrorOutput = envGetVal("ui" "errorOutput")
WarningOutput = envGetVal("ui" "warningOutput")

-Pete Zakel
(phz@seeheader.nospam)

"This isn't brain surgery; it's just television."

-David Letterman
 

Welcome to EDABoard.com

Sponsor

Back
Top