Page 1 of 1 1
Topic Options
#57316 - 2001-07-18 12:57 AM dim $array[$variable] problem
Anonymous
Unregistered


all,

I had been working with an array in a script which worked fine, recently i have been trying ot run this script again but have been getting
Script Error : unknown command !.
i have tried not using a variable in the array, i have checked all rights that i need on NT, but still no luck. also tried under a different user name , with all rights.

any ideas?
thanks, Armin

Top
#57317 - 2001-07-17 01:05 PM Re: dim $array[$variable] problem
Jochen Administrator Offline
KiX Supporter
*****

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

in the most cases 'unknown command' errors are caused by a missing quotation !

Try MCA's kixstrip tool to debug your Script !

get it here

hth

Jochen

_________________________



Top
#57318 - 2001-07-17 01:12 PM Re: dim $array[$variable] problem
Anonymous
Unregistered


thanks, i checked it out and

;Informative KIXSTRIP: no errors found (input=122 output=122 skip=0).

so im back to square one
-Armin

Top
#57319 - 2001-07-17 01:15 PM Re: dim $array[$variable] problem
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Ok,
post some code , and someone (me) will have a look on it ...

Jochen

_________________________



Top
#57320 - 2001-07-17 01:40 PM Re: dim $array[$variable] problem
Anonymous
Unregistered


you got mail my friend, thanks
Top
#57321 - 2001-07-17 02:26 PM Re: dim $array[$variable] problem
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Back to you ,

it should work now !

(For the next time : The salvation of the problem will be achieved much quicker if the gang can see it too ... so post the code here )

Jochen

PS: Delete the line 'debug on' in my reply !
It's a Beta 2/RC 1 option only !!!

[ 17 July 2001: Message edited by: jpols ]

_________________________



Top
#57322 - 2001-07-17 05:26 PM Re: dim $array[$variable] problem
Anonymous
Unregistered


thanks found the problem, in the US (where i wrote this script) i was running 3.63, in the UK , where i am now, it was 3.55 , now its 3.63 and its all good.....
Top
#57323 - 2001-07-17 05:35 PM Re: dim $array[$variable] problem
Jochen Administrator Offline
KiX Supporter
*****

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

no wonder then !

FYI: I assume that you never have reached the $Max_machines before , because it would've been failed with Array reference out of bounds ... You can prevent this if you use the second one i sent to you !

Jochen

[ 17 July 2001: Message edited by: jpols ]

_________________________



Top
#57324 - 2001-07-17 07:43 PM Re: dim $array[$variable] problem
Anonymous
Unregistered


thanks, yeah it never gets more than like ten, we just used 64 as a max
Top
#57325 - 2001-07-18 05:34 AM Re: dim $array[$variable] problem
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Additional information about kixstrip.
There are two version of them: kixstrip363.exe & kixstrip400.exe
The first one is using the keyword table of KiXtart 3.63 and the other
one will use the table of KiXtart 4.00 RC 1 release.

Your message for kixstrip400.exe (= link from JPols)

;Informative KIXSTRIP: no errors found (input=122 output=122 skip=0).

means:
- the blockstructures ar correct.
- no quotations & brackects missing.
- no unknown macros were using for KiXtart 4.00 release.
Our advise is using kixstrip363.exe for KiXtart 3.6x release.
Greetings.

BTW: for more information see topic
http://kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=2&t=001943

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#57326 - 2001-07-22 04:12 AM Re: dim $array[$variable] problem
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

A list of differences between kixtart versions is:

code:

{* 'addkey ' functions *} ' ',
{* 'addprinterconnection ' functions *} ' ',
{* 'addprogramgroup ' functions *} ' ',
{* 'addprogramitem ' functions *} ' ',
{* 'address ' macro's *} ' ',
{* 'and ' boolean *} '315 ',
{* 'asc ' functions *} '346 ',
{* 'at ' functions *} ' ',
{* 'backupeventlog ' functions *} '361 ',
{* 'beep ' commands *} ' ',
{* 'big ' commands *} ' ',
{* 'box ' functions *} ' ',
{* 'break ' commands *} ' ',
{* 'call ' commands *} ' ',
{* 'case ' commands *} '337 ',
{* 'cd ' commands *} ' ',
{* 'chr ' functions *} '330 ',
{* 'cleareventlog ' functions *} '361 ',
{* 'close ' functions *} '330 ',
{* 'cls ' commands *} ' ',
{* 'color ' commands *} ' ',
{* 'comment ' macro's *} ' ',
{* 'comparefiletimes ' functions *} '340 ',
{* 'cookie1 ' commands *} ' ',
{* 'copy ' commands *} '340 ',
{* 'createobject ' functions *} '400 ',
{* 'csd ' macro's *} '400 ',
{* 'curdir ' macro's *} '346 ',
{* 'date ' macro's *} ' ',
{* 'day ' macro's *} ' ',
{* 'dectohex ' functions *} '360 ',
{* 'del ' commands *} ' ',
{* 'delkey ' functions *} ' ',
{* 'delprinterconnection ' functions *} ' ',
{* 'delprogramgroup ' functions *} ' ',
{* 'delprogramitem ' functions *} ' ',
{* 'deltree ' functions *} ' ',
{* 'delvalue ' functions *} ' ',
{* 'dim ' commands *} ' ',
{* 'dir ' functions *} '360 ',
{* 'display ' commands *} ' ',
{* 'do ' commands *} '315 ',
{* 'domain ' macro's *} ' ',
{* 'dos ' macro's *} ' ',
{* 'each ' commands *} '400 ',
{* 'else ' commands *} ' ',
{* 'endif ' commands *} ' ',
{* 'endfunction ' commands *} '400 ',
{* 'endselect ' commands *} '337 ',
{* 'enumgroup ' functions *} '345 ',
{* 'enumipinfo ' functions *} '400 ',
{* 'enumkey ' functions *} ' ',
{* 'enumlocalgroup ' functions *} '345 ',
{* 'enumvalue ' functions *} ' ',
{* 'error ' macro's *} ' ',
{* 'execute ' functions *} '360 ',
{* 'exist ' functions *} ' ',
{* 'existkey ' functions *} ' ',
{* 'exit ' commands *} ' ',
{* 'expandenvironmentvars' functions *} '361 ',
{* 'flushkb ' commands *} ' ',
{* 'for ' commands *} '400 ',
{* 'fullname ' macro's *} ' ',
{* 'function ' commands *} '400 ',
{* 'get ' commands *} ' ',
{* 'getdiskspace ' functions *} '353 ',
{* 'getfileattr ' functions *} '360 ',
{* 'getfilesize ' functions *} '360 ',
{* 'getfiletime ' functions *} '353 ',
{* 'getfileversion ' functions *} '340 ',
{* 'getobject ' functions *} '400 ',
{* 'gets ' commands *} ' ',
{* 'global ' commands *} ' ',
{* 'go ' commands *} ' ',
{* 'gosub ' commands *} '337 ',
{* 'goto ' commands *} ' ',
{* 'homedir ' macro's *} ' ',
{* 'homedrive ' macro's *} '340 ',
{* 'homeshr ' macro's *} ' ',
{* 'hostname ' macro's *} '330 ',
{* 'if ' commands *} ' ',
{* 'in ' commands *} '400 ',
{* 'ingroup ' functions *} ' ',
{* 'instr ' functions *} ' ',
{* 'inwin ' macro's *} ' ',
{* 'ipaddress0 ' macro's *} '330 ',
{* 'ipaddress1 ' macro's *} '330 ',
{* 'ipaddress2 ' macro's *} '330 ',
{* 'ipaddress3 ' macro's *} '330 ',
{* 'keyexist ' functions *} '400 ',
{* 'kix ' macro's *} ' ',
{* 'lanroot ' macro's *} ' ',
{* 'lcase ' functions *} '344 ',
{* 'ldomain ' macro's *} ' ',
{* 'ldrive ' macro's *} ' ',
{* 'len ' functions *} ' ',
{* 'lm ' macro's *} ' ',
{* 'loadhive ' functions *} '346 ',
{* 'loadkey ' functions *} ' ',
{* 'logevent ' functions *} '348 ',
{* 'logoff ' functions *} '330 ',
{* 'longhomedir ' macro's *} '340 ',
{* 'loop ' commands *} '315 ',
{* 'lserver ' macro's *} ' ',
{* 'ltrim ' functions *} '337 ',
{* 'maxpwage ' macro's *} ' ',
{* 'md ' commands *} '330 ',
{* 'mdayno ' macro's *} ' ',
{* 'messagebox ' functions *} '320 ',
{* 'month ' macro's *} ' ',
{* 'monthno ' macro's *} ' ',
{* 'next ' commands *} '400 ',
{* 'olecallfunc ' functions *} '346400',
{* 'olecallproc ' functions *} '346400',
{* 'olecreateobject ' functions *} '346400',
{* 'oleenumobject ' functions *} '361400',
{* 'olegetobject ' functions *} '346400',
{* 'olegetproperty ' functions *} '346400',
{* 'olegetsubobject ' functions *} '346400',
{* 'oleputproperty ' functions *} '346400',
{* 'olereleaseobject ' functions *} '346400',
{* 'open ' functions *} '330 ',
{* 'or ' boolean *} '315 ',
{* 'password ' commands *} ' ',
{* 'play ' commands *} ' ',
{* 'primarygroup ' macro's *} '336 ',
{* 'priv ' macro's *} ' ',
{* 'productsuite ' macro's *} '400 ',
{* 'producttype ' macro's *} '400 ',
{* 'pwage ' macro's *} ' ',
{* 'quit ' commands *} '340 ',
{* 'ras ' macro's *} '340 ',
{* 'rd ' commands *} '348 ',
{* 'readline ' functions *} '330 ',
{* 'readprofilestring ' functions *} ' ',
{* 'readtype ' functions *} ' ',
{* 'readvalue ' functions *} ' ',
{* 'redirectoutput ' functions *} '320 ',
{* 'return ' commands *} '337 ',
{* 'rnd ' functions *} '348 ',
{* 'rserver ' macro's *} ' ',
{* 'rtrim ' functions *} '337 ',
{* 'run ' commands *} ' ',
{* 'savekey ' functions *} ' ',
{* 'scriptdir ' macro's *} '346 ',
{* 'select ' commands *} '337 ',
{* 'sendkeys ' functions *} '360 ',
{* 'sendmessage ' functions *} '320 ',
{* 'serror ' macro's *} '346 ',
{* 'set ' commands *} ' ',
{* 'setascii ' functions *} '361 ',
{* 'setconsole ' functions *} '317 ',
{* 'setdefaultprinter ' functions *} ' ',
{* 'setfileattr ' functions *} '360 ',
{* 'setfocus ' functions *} '360 ',
{* 'setl ' commands *} ' ',
{* 'setm ' commands *} ' ',
{* 'setsystemstate ' functions *} '363 ',
{* 'settime ' commands *} ' ',
{* 'settitle ' functions *} '400 ',
{* 'setwallpaper ' functions *} '335 ',
{* 'shell ' commands *} ' ',
{* 'showprogramgroup ' functions *} ' ',
{* 'shutdown ' functions *} '320 ',
{* 'sid ' macro's *} '336 ',
{* 'sidtoname ' functions *} '400 ',
{* 'site ' macro's *} '360 ',
{* 'sleep ' commands *} ' ',
{* 'small ' commands *} ' ',
{* 'split ' functions *} '400 ',
{* 'srnd ' functions *} '348 ',
{* 'startdir ' macro's *} ' ',
{* 'step ' commands *} '400 ',
{* 'substr ' functions *} ' ',
{* 'syslang ' macro's *} '353 ',
{* 'time ' macro's *} ' ',
{* 'to ' commands *} '400 ',
{* 'ubound ' functions *} '400 ',
{* 'ucase ' functions *} '344 ',
{* 'unloadhive ' functions *} '346 ',
{* 'until ' commands *} '315 ',
{* 'use ' commands *} ' ',
{* 'userid ' macro's *} ' ',
{* 'userlang ' macro's *} '353 ',
{* 'val ' functions *} '337 ',
{* 'vartype ' functions *} '400 ',
{* 'vartypename ' functions *} '400 ',
{* 'wdayno ' macro's *} ' ',
{* 'while ' commands *} '315 ',
{* 'wksta ' macro's *} ' ',
{* 'writeline ' functions *} '346 ',
{* 'writeprofilestring ' functions *} ' ',
{* 'writevalue ' functions *} ' ',
{* 'wuserid ' macro's *} ' ',
{* 'ydayno ' macro's *} ' ',
{* 'year ' macro's *} ' '


First number means: item has been add
Second number means: item has been removed (currently only valid
for OLExxx functions).
Version has been updated to KiXtart 2001 - 4.00 beta 1 release.
Greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


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

Who's Online
1 registered (mole) and 1300 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.076 seconds in which 0.041 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