|
|
|||||||
My brain is broken. code:I was hoping this would print "This is a test." Compile error on line: $errorpile[2] = $test Please help. Thanks |
||||||||
|
|
|||||||
KiX is an interpeter lasnguage, not a compiled one. Are you sure you have the right board? |
||||||||
|
|
|||||||
Try slapping a DIM in your declaration there: dim $errorpile[3] -Shawn |
||||||||
|
|
|||||||
code:Dang! Way too slow tonightDim $errorpile[3] ;declaration of array with 4 slots [ 26. September 2003, 01:12: Message edited by: Howard Bullock ] |
||||||||
|
|
|||||||
you declare variable either by assigning a value to it or by explicitly making it something with global or dim. you do none of these. simple change your "declaration" line to: dim $errorpile[3] and it should work just fine |
||||||||
|
|
|||||||
And the use of variables/arrays is documented in the KiXtart Manual. |
||||||||
|
|
|||||||
Thanks for all the help. I am actually declaring $errorpile in a script that calls other scripts that will dump their errors into this array. So, from your advice I declared the variable a GLOBAL and all is well. Interpreted langauge? Does this mean the scripts are run directly by kix32.exe and the errors come out as the script is being interpreted. Thanks again |
||||||||
|
|
|||||||
Yes, that is how an Interpreter works, OTOH a compiler compiles a script/program into binary code that can be executed directly. |