Globals variables on hoc files?

Anything that doesn't fit elsewhere.
Post Reply
erick_valpo
Posts: 6
Joined: Mon May 30, 2011 4:53 pm

Globals variables on hoc files?

Post by erick_valpo » Thu Apr 26, 2012 12:47 pm

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

ted
Site Admin
Posts: 5566
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Globals variables on hoc files?

Post by ted » Thu Apr 26, 2012 3:19 pm

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

erick_valpo
Posts: 6
Joined: Mon May 30, 2011 4:53 pm

Re: Globals variables on hoc files?

Post by erick_valpo » Thu Apr 26, 2012 5:21 pm

thanks,
I realize that it wasn't the problem,

Post Reply