Page 1 of 1 1
Topic Options
#9384 - 2001-06-08 09:54 PM Script error : expected expression !.
Anonymous
Unregistered


Ok, I'm sure this is stupid. I'm just starting out with Kixtart and I'm trying to do what was written in a users guide. My script simply looks like this.

--------- start Hello.kix ---------
"Hello World"
--------- end Hello.kix ---------

I type "kix32 hello" at the command prompt and get script error : expected expression !. WTF? Either the guide I'm reading is wrong or I'm missing something obvious.

BTW, I'm using version 3.63 if that makes a difference.

Top
#9385 - 2001-06-08 11:13 PM Re: Script error : expected expression !.
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Hi and welcome to the board!

When you open hello.kix in notepad, what do you see?

are you using the hello.kix that was found in the \scripts folder of the zip file?

Bryce

------------------
kix.isorg.net

Top
#9386 - 2001-06-09 03:51 AM Re: Script error : expected expression !.
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Hi WallyWest

Try saving your HELLO.KIX file with these entries and the calling as you did before.

; The semi-colon is like a REM or :: to a batch file

code:

? "Hello Kix"


KiXtart does not know what to do with "Hello World" without the ? before it.

Try looking at some of the sample code here on the board as you read the manual and test and try out new stuff.


------------------
NTDOC...
The dark side is quicker, easier, more seductive.
If you choose the quick and easy path, you will become an agent of evil.

Top
#9387 - 2001-06-09 08:42 AM Re: Script error : expected expression !.
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
hey doc!

actually a

code:
"hello world"

will execute just fine in kix. All the ? does is tell kix to go to the next line.

the above code executed with kix 3.63

quote:

C:\>kix363 hello
hello world
C:\>

and this

code:
? "Hello World"


executed in kix 3.63

quote:

C:\>kix363 hello

hello world
C:\>


What i suspect that WallyWest has done is include the "-----" lines in the .kix file.

------------------
kix.isorg.net

Top
#9388 - 2001-06-10 07:12 AM Re: Script error : expected expression !.
cj Offline
MM club member
*****

Registered: 2000-04-06
Posts: 1102
Loc: Brisbane, Australia
Bryce, you are very busy, would you like someone else to take over your starters guide? One of the guys at my work is using it and I had to tell him not to use the "----- start script ---------" bits too.

cj

Top
#9389 - 2001-06-11 04:23 PM Re: Script error : expected expression !.
Anonymous
Unregistered


Well I got it to work by having nothing but the "hello world" in the kix file. Are the start and end statements not even part of the code? The way the manual read I thought they were needed. Anyway, I'll play around with it some more.

Thanks

Top
#9390 - 2001-06-11 07:52 PM Re: Script error : expected expression !.
Anonymous
Unregistered


Just a reminder here...

The symbol ? is a line break for kix, it is not required for screen output.

You can do thing like:

?"Updating stuff...."
Do things here with happy kix commands.
"done"

This will display:

Updating stuff....done.

The ? can be at the end of the line or the beginning, but if wanted to be displayed as a question mark it needs to be inside the quotation marks.

Top
#9391 - 2001-06-11 08:03 PM Re: Script error : expected expression !.
Anonymous
Unregistered


Example:

code:

break on
;--------- start Hello.kix ---------
?"Hello World"

$count = "0"

DO

$count = 1 + "$count"
SELECT
CASE $COUNT = 1
COLOR r+/n

CASE $COUNT = 2
COLOR w+/n

CASE $COUNT = 3
COLOR b+/n

CASE 1
COLOR G+/G
ENDSELECT
"."
sleep 1
color w+/n

UNTIL $count = 5

;--------- end Hello.kix ---------



[This message has been edited by JasonC (edited 11 June 2001).]

Top
#9392 - 2001-06-12 08:08 PM Re: Script error : expected expression !.
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Thanks Bryce,

Your right... I knew that, just slipped my mind. Couldn't see the forest with all the trees in the way. I use so many new lines in my code I kind of got to think of it as required, when in fact it is not.

Thanks for setting me straight ------------>


NTDOC

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 1046 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.101 seconds in which 0.066 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