Page 2 of 2 <12
Topic Options
#32854 - 2002-11-19 04:41 PM Re: Creating and writing into a .log file
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Also why do you put the '?' at the beginning of the line? It should be at the end!

The '?' adds a CRLF to the line so it makes sense that you'd want the CRLF at the end of each line and not the beginning.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#32855 - 2002-11-19 04:42 PM Re: Creating and writing into a .log file
BrianK Offline
Getting the hang of it

Registered: 2002-10-02
Posts: 90
Loc: Amsterdam, The Netherlands
Hey,
that was an easy one, thanks Waltz.

Brian
_________________________
Rodney Dangerfield: “My mother didn't breast-feed me. She said she liked me as a friend.”

Top
#32856 - 2002-11-19 04:44 PM Re: Creating and writing into a .log file
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I don't know...
$file = "c:\temp\test.txt"
del $file
WriteLog2($file, "@@LDOMAIN=@LDOMAIN" + @CRLF + "@@LSERVER=@LSERVER")

seems pretty easy [Wink]

So does...
$rc=WriteProfileString($file, "", "@@LDOMAIN", @LDOMAIN)
$rc=WriteProfileString($file, "", "@@LSERVER", @LSERVER)
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#32857 - 2002-11-19 04:59 PM Re: Creating and writing into a .log file
BrianK Offline
Getting the hang of it

Registered: 2002-10-02
Posts: 90
Loc: Amsterdam, The Netherlands
HAHAHA yeah it does, Howard! [Big Grin]

And be sure i will be checking out your WriteLog2 () soon!

Thanx...

Brian
_________________________
Rodney Dangerfield: “My mother didn't breast-feed me. She said she liked me as a friend.”

Top
#32858 - 2002-11-19 05:30 PM Re: Creating and writing into a .log file
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I think we already had this '?' position discussion. For me it's a matter of aesthetics, it just looks better to me with the '?' at the beginning of the line. However, I do put @CRLFs at the end of a line [Wink]
_________________________
There are two types of vessels, submarines and targets.

Top
#32859 - 2002-11-19 06:51 PM Re: Creating and writing into a .log file
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I think it's about what you are doing.
I place question marks always after question.

to have a question mark at the end of script line would say to me that I don't know what I have hear can you answer something.
when at the beginning, I command with the line to give me something which I know.
_________________________
!

download KiXnet

Top
#32860 - 2002-11-19 08:31 PM Re: Creating and writing into a .log file
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Like Jens said, we had that discussion. The manual simply states:
quote:
?
Action
Indicates a new line. This moves the cursor position to the beginning of the next line.

Syntax
?

It is not a PRINT command. It simply causes console to output on a new line. Pretty much the same as the @CRLF macro.

If the output is redirected to a file, you would want to terminate each line with a CRLF.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#32861 - 2002-11-19 08:49 PM Re: Creating and writing into a .log file
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
les, didn't say it is.
but seeing the amount it's used.

nowadays, don't use it at all. except when debugging a wkix script
_________________________
!

download KiXnet

Top
Page 2 of 2 <12


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

Who's Online
0 registered and 665 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.057 seconds in which 0.025 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