Page 1 of 1 1
Topic Options
#99194 - 2003-03-08 06:37 AM FAQ-COMMENTS: Why does the console display zeros and ones (amongst others)?
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear Les,

We read your input Why does the console display zeros and ones (amongst others)?
Of course the beautiful way for suppressing return codes is by f.e. a variable or IF/ENDIF strucuture.

Your note about "there is no NUL that you can send the return codes to" isn't complete.
When the user doesn't print some useful information on the screen he can
use the RedirectOutput function.
An example
code:
IF RedirectOutput("nul") ENDIF

$start_page="http://kixtart.org"
WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Start Page", $start_page, "REG_SZ")
WriteValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main", "Start Page", $start_page, "REG_SZ")

IF RedirectOutput("") ENDIF

greetings.

[Lonkero fixed the title to mean something]

[ 13. March 2003, 00:32: Message edited by: Lonkero ]
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#99195 - 2003-03-13 12:31 AM Re: FAQ-COMMENTS: Why does the console display zeros and ones (amongst others)?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
eh.
1) when you issue redirectoutput, it still outputs to console.
only the console output is directed elsewhere.

2) if endif should never be used for suppressing errorcodes.
it's conditional check stuff that has nothing to do with console-output. be aware of sloppy coders!
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 764 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.07 seconds in which 0.012 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org