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 »

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: 6299
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Globals variables on hoc files?

Post 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
erick_valpo
Posts: 6
Joined: Mon May 30, 2011 4:53 pm

Re: Globals variables on hoc files?

Post by erick_valpo »

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