Re: Weird Error Msg



SuNnY wrote:
Hi all !!

I am working on file and string searching. while executing my code , i
am getting this strange error msg. i tried everything but cudnt crack
what tclsh is trying to tell me ...

here is the complete error msg:

list element in quotes followed by "." instead of space
while executing
"foreach Str $TestStr {

"List element in quotes followed by <some character>" means the variable doesn't contain a valid list (by virtue of it having a non-whitespace character immediately after a quoting character).

My guess is, you're taking a random string from a file or from user input and are trying to use it as a Tcl list, which you should not be doing.


--
Bryan Oakley
www.tclscripting.com
.



Relevant Pages

  • Weird Error Msg
    ... I am working on file and string searching. ... while executing my code, i ... am getting this strange error msg. ... "foreach Str $TestStr { ...
    (comp.lang.tcl)
  • Re: Weird Error Msg
    ... I am working on file and string searching. ... while executing my code, i ... am getting this strange error msg. ... Place the line "puts TestStr:$TestStr" before the foreach loop to find ...
    (comp.lang.tcl)
  • Re: send msg same as netsend
    ... Upon executing i got netsend error msg saying... ... we are unable to use netsend msg through run command. ... vba i got err msg. ...
    (microsoft.public.excel.programming)