Page 1 of 1

Globals variables on hoc files?

Posted: Thu Apr 26, 2012 12:47 pm
by erick_valpo
Hi, my question:
If I define a variable in let said "mosinit.hoc" , How can i use it in another hoc file loaded by load_file(1, model.hoc) ?

Thanks

Re: Globals variables on hoc files?

Posted: Thu Apr 26, 2012 3:19 pm
by ted
Symbols have global scope except for those that are
--declared as local or localobj in a proc or func
or
--defined inside a template but not declared to be public

Re: Globals variables on hoc files?

Posted: Thu Apr 26, 2012 5:21 pm
by erick_valpo
thanks,
I realize that it wasn't the problem,