Page 1 of 1 1
Topic Options
#40252 - 2003-05-16 10:01 AM Variable not being set
j95661 Offline
Getting the hang of it

Registered: 2001-02-27
Posts: 84
Loc: sacramento,ca usa
I cant figure out what am I doing wrong. I am setting a variable and the first time I try and set it it doesnt stick. The second time though it works. This is with version 4.20

Dim $ErrMessage
$ErrMessage = "testing 123"
? $ErrMessage
"no output is shown"
$ErrMessage = "testing 321"
? $ErrMessage
"testing 321"

What am I doing wrong?

[ 16. May 2003, 10:02: Message edited by: j95661 ]
_________________________
WonderBoy Constantly learning everyday, how much I dont know :-)

Top
#40253 - 2003-05-16 10:12 AM Re: Variable not being set
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
It works fine with 4.20.

Is that a literal cut'n'paste of your script?

I suspect you must have something else in your actual script lines which is causing the problem.

[ 16. May 2003, 10:16: Message edited by: Richard H. ]

Top
#40254 - 2003-05-16 10:14 AM Re: Variable not being set
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Works for me as well with v4.21 release
Top
#40255 - 2003-05-16 10:15 AM Re: Variable not being set
j95661 Offline
Getting the hang of it

Registered: 2001-02-27
Posts: 84
Loc: sacramento,ca usa
I just created a seperate script to make sure I didnt have a typo somewhere.

Dim $ErrMessage

$ErrMessage = "testing 123"
? $ErrMessage
"nada"
$ErrMessage = "testing 321"
? $ErrMessage
"testing 321"

I'm going to try downloading 4.20 again, maybe I have a corrupt file.
_________________________
WonderBoy Constantly learning everyday, how much I dont know :-)

Top
#40256 - 2003-05-16 10:18 AM Re: Variable not being set
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
I guess the other possibility is that the first line of output is being swallowed by something.

Try outputting a dummy string (with @CRLF after it) and see what happens.

Top
#40257 - 2003-05-16 10:31 AM Re: Variable not being set
j95661 Offline
Getting the hang of it

Registered: 2001-02-27
Posts: 84
Loc: sacramento,ca usa
just restarted my machine, created new script with same info. The first variable is not being set , all the following variables are fine. I guess I can set a throw away variable in the begining.

very odd, Im running windows XP is this a feature. :-) ooh well if this is all I run into I cant complain.
_________________________
WonderBoy Constantly learning everyday, how much I dont know :-)

Top
#40258 - 2003-05-16 10:53 AM Re: Variable not being set
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Bizarre [Confused]

Try this:
code:
Dim $Counter
$Counter=1
"[1] $$Counter="+$Counter+@CRLF
$Counter=$Counter+1
"[2] $$Counter="+$Counter+@CRLF
"Kix="+@KIX+@CRLF
"OS="+@PRODUCTTYPE+@CRLF

I get (as expected):
quote:
[1] $Counter=1
[2] $Counter=2
Kix=4.20
OS=Windows XP Professional


Top
#40259 - 2003-05-16 10:55 AM Re: Variable not being set
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
may I ask what software you use when you create your scripts?
_________________________
!

download KiXnet

Top
#40260 - 2003-05-16 11:45 AM Re: Variable not being set
j95661 Offline
Getting the hang of it

Registered: 2001-02-27
Posts: 84
Loc: sacramento,ca usa
Kixscripts editor version 1.6
_________________________
WonderBoy Constantly learning everyday, how much I dont know :-)

Top
#40261 - 2003-05-16 11:46 AM Re: Variable not being set
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
hmmmm ..... have you tried to create that with Notepad ?
_________________________



Top
#40262 - 2003-05-18 08:00 AM Re: Variable not being set
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Hi Jason, No, it is NOT a feature of XP or any one of the other Windows operating systems.

Try this. Download KiXtart 4.21
http://www.gwspikval.com/jooel/files/KiX2001_421.zip
http://www.scriptlogic.com/downloads/kix/KiX2001_421.zip
http://www.kixhelp.com/Downloads/KiX2001_421.zip

Then extract just the KIX32.EXE file to a NEW folder called C:\MYTEST

Then using NOTEPAD create the following code and save it to the new folder MYTEST and name it MESSAGE.KIX


Dim $ErrMessage
$ErrMessage = "testing 123"
? $ErrMessage


Then start a DOS Prompt and change to the new folder C:\MYTEST and do a DIR The ONLY thing that should now be in this new folder is:

KIX32.EXE
MESSAGE.KIX

Then type EXACTLY as below including FULL PATH and press the Enter key:
C:\MYTEST\KIX32.EXE C:\MYTEST\MESSAGE.KIX

Then let us know what you get reported on screen.
You should see this on screen:

C:\MYTEST\KIX32.EXE C:\MYTEST\MESSAGE.KIX

testing 123

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
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.118 seconds in which 0.072 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