|
killunix Beginner
Joined: 18 Nov 2007 Posts: 28
|
Posted: Sun Jan 24, 2010 12:33 pm
how can i put the variable in the special class? |
hi,all.
I need put one variables in the special class such as "job" class, this variable be created buy a alias in th "job" class, In the alias i use
command to create the variable, but it always be created in the root. sometime in the other window's root.
How can i resolve this question.
My cmud version is cmud pro 2.37
Poor English,hope you can understand what i said.
Thank you very much! |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Jan 24, 2010 8:43 pm |
change ./ to the specific //module/class/class path to this variable. Or get rid of the ./ and let CMud do the finding.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Mon Jan 25, 2010 1:30 pm |
You can also specify a classname as one of the parameters to the #var command when creating it:
#VAR varname value defaultval classname |
|
|
|
killunix Beginner
Joined: 18 Nov 2007 Posts: 28
|
Posted: Tue Jan 26, 2010 7:35 am |
thanks you。
i did what you say. it worked well. but sometimes they still be created in the root class. or other module root class. |
|
|
|
|
|