Re: brand new to tcl; newbie question



ok, I'll try to do a little better in phrasing my questions.

If the proc is named test, such as below:
---------------------------------------------------------------
proc test {} {
return "text to display"
}
proc content {} {
set somevar [test]
return "$somevar"
}
---------------------------------------------------------------
I get:

invalid command name "test"
while executing
"test"
(procedure "content" line 3)
::19493::payload->content
invoked from within
"[self]::payload content"
(snipped)

If I change the name of the proc to something else, like this:
---------------------------------------------------------------
proc myproc {} {
return "text to display"
}


proc content {} {
set somevar [myproc]

return "$somevar"

}
--------------------------------------------------------------
I get this:
::19493::payload

I hope I am being more clear.
.



Relevant Pages

  • Re: How to suppress those messages [404] etc
    ... Though I suspect that your PROC is running the SELECT statement and the LIST ... DISPLAY VENDOR PRICE DETAILS ... so that people get a visual feedback that things are happening. ... John Marshall ...
    (comp.databases.pick)
  • Help No Window Display
    ... I want to display the background xy scales and axes, then produce a curve ... puts "TEST proc" ... .c delete ball ...
    (comp.lang.tcl)
  • Is the key delaying interpretation of a variable?
    ... the original robot turns, mine does not! ... A display proc ... estimating $shoulder in a different way from the first method? ...
    (comp.lang.ruby)
  • Re: Finding data
    ... a cursor. ... Any matches should also display the table name, ... native to SQL Server that will do this currently. ... Try and design your proc so that you are are only doing one table scan per ...
    (microsoft.public.sqlserver.server)
  • Re: extract variable after running exec xtclsh
    ... I need to be able to call it from a procedure, so that I can display ... the "source tcljtag.tcl" output to the console with a catch statement ... tcljtag.tcl in a proc? ... You said something about coding it like this? ...
    (comp.lang.tcl)