Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

invavalid command name "default"

Status
Not open for further replies.

snowingnow

Programmer
Jun 1, 2006
32
CA
I ran a proc, and got a message of "...invalid command name "default" errorinf..
there is my part proc:...
...
proc name {args}{
switch -exact -- $mode{
srart{
...
}
run {
...
}
time{
...
}
default
{
error "..."
}
}
}--------- any ideal? Thanks
 
Make sure you havent accidentally closed the switch statement (ie: all braces match). Thats the same error you'd see if you type "default" into the interpreter.
 
Thanks you, i wil check it out. another quesiton is in the procedure there is :
keylget args MODE mode --- what does it mean..
and where does the $mode get the list from?
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top