$gettok invalid format (var error...) - 01/05/07 09:34 PM
How shall I explain this. Using gettok and setting it to a variable gives me the error. While just echo'ing the gettok command works perfectly fine. Here is how my code is set up.
I placed the echo right next to the var to make sure, but it still gives the error when trying to set it.
Code:
var %temp.dir = %mtm. [ $+ [ $replace(%temp.trig, $chr(32), $chr(46)) ] ] var %y = $numtok(%temp.dir,127) while (%y > 0) { echo -a %temp.dir echo -a $gettok(%temp.dir,%y,127) var %temp.odderror $gettok(%temp.dir,%y,127)
I placed the echo right next to the var to make sure, but it still gives the error when trying to set it.