Passing strings as parameters in proc()
Posted: Tue Feb 28, 2006 6:08 pm
Hi,
I am trying to define a procedure in a hoc file that will take as a parameter section names. E.g. If I have a soma and an axon section I would like to have something like that:
foo() {
$1.L=10
...
}
foo(soma)
Is there a way to do that? I tried to do the above implementation, but the compiler returned errors.
Thanks
I am trying to define a procedure in a hoc file that will take as a parameter section names. E.g. If I have a soma and an axon section I would like to have something like that:
foo() {
$1.L=10
...
}
foo(soma)
Is there a way to do that? I tried to do the above implementation, but the compiler returned errors.
Thanks