Page 1 of 1 1
Topic Options
#34413 - 2002-12-11 11:11 AM messages on new line
vanloon Offline
Fresh Scripter

Registered: 2002-05-27
Posts: 34
Hi,

Can somebody tell me how I can get kix to write any new messages "updating system" on the next line. now it is placing it on the same line as another message so I get: "updating virusscan.updating system"

Thanx

Top
#34414 - 2002-12-11 11:16 AM Re: messages on new line
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Vanloon,

If you mean the Console its a single ' ? ' (Question mark)

in text with fe. writeline it will be :

3.x
code:
chr(13) + chr(10)

4.10 and higher
code:
@crlf

hth
Jochen
_________________________



Top
#34415 - 2002-12-11 11:17 AM Re: messages on new line
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Additionally,

you might also use the at() function :

quote:
At( )

Action: Places the cursor in the position indicated.

Syntax: AT (row, column)

Parameters: Row

Specifies the row at which to position the cursor.

Column

Specifies the column at which to position the cursor.

Remarks: The cursor position is expressed in screen coordinates. A value of 0,0 represents the top left corner of the screen.
The AT command is ignored if all output has been redirected to a file using the REDIRECTOUTPUT function.


See Also: ?, Color, RedirectOutput( )

Returns: Nothing.

_________________________



Top
#34416 - 2002-12-11 11:20 AM Re: messages on new line
vanloon Offline
Fresh Scripter

Registered: 2002-05-27
Posts: 34
Thanks,

The ? sign did his work. Can u tell me how I can get the 0 to stay away before the text I want to display??

Michel

Top
#34417 - 2002-12-11 11:23 AM Re: messages on new line
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Yep,

silence your function calls as described in here :

Why does the console display zeros and ones (amongst others)?
_________________________



Top
#34418 - 2002-12-11 03:15 PM Re: messages on new line
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
The '?' is best for console output whereas the @CRLF macro is best suited when building multi-line strings, e.g. to display text in a messagebox.

[ 11. December 2002, 18:03: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


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

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

Generated in 0.054 seconds in which 0.024 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