Hi,

I have a problem with tokenized script.
Look at the following lines
Code:
break on
cls

? "main code, scriptname = "+@scriptname

$=MyFunction()
exit

function MyFunction()
? "function, scriptname = "+@scriptname
endfunction



suppose the script is called toto.kix, when i launch this code, the result is :
main code, scriptname = toto.kix
function, scriptname = toto.kix


this is what expected.


now, if i tokenize the script and then run the script toto.kx, the result is
main code, scriptname = toto .kx
function, scriptname = toto .kix


This is not very cool !!!

am i doing something wrong ?
_________________________
Christophe