Try this script:

k2ScreenWriteTest.K2K

code:

break on
cls


"v0.0" ?
" v1.0" ?
" v2.0" ?
" v3.0" ?
" v4.0" ?
" v5.0" ?
" v6.0" ?
" v7.0" ?
" v8.0" ?
" v9.0" ?
" v10." ?
" v11." ?
" v12." ?
" v13." ?
" v14." ?
" v15." ?
" v16." ?
" v17." ?
" v18." ?
" v19." ?
" v20." ?
" v21." ?
" v22." ?


you will notice the KiX2k stuffs up only the strings that have an even number of characters. The numbers represent how many spaces there are in front of the v. So V22. has 22 spaces, then "v22." making 26 in total.

The number 8, however, is an exception...

Now try this:

code:

break on


for $a=97 to 122


$c=" "+chr($a)+"4.2"
$c ?


next


This will print 4 spaces, then a letter from a to z then "4.2" - a total of 8 characters. You will see that a to h are ok, but i to z are nonsence characters.

This even occurs when you use a variable to print to the screen

Mr Ruud sir please please fix this...


More info... I have found the reason, this is a lightning bolt generator... read on:

try this script in a DOS box that is at least 104 chars wide and a buffer of at least 75 lines:

Lightning.K2K

code:

break on
cls


for $i=1 to 74
for $a=97 to 122
$c=""+chr($a)
if $i<10 $c=$c+"0" endif
$c=$c+$i+"."
"$c"
next
?
next


Now what the hell was that?!


cj

[This message has been edited by cj (edited 19 April 2001).]