JockeP
10-11-2009, 11:19 AM
Hi everyone.
Im writing a script where I want to store every newly created object in a list so that I can run another script on those items when the whole script is done.
I can create a a list within the global proc that is running, but it feels like Im using to much code and it gets dirty.
I want to call another global proc(or something alike) that runs this small code and stores the information in a list that the first proc can call on later.
The problem I have is getting the information back to the first proc from the second.
I tried using a textScrollList in the UI to store the list, but I get the message that procs cant be nested when I tried that solution.
So basicly I want to run this code in a separate proc:
string $nwObj[];
int $nwObjSze;
string $cSel[];
$cSel =`ls -sl`;
$nwObjSze=size($nwObj);
$nwObj[$nwObjSze] = $cSel[0];
instead of running it after each created object.
Any ideas how to pull it off?
Im writing a script where I want to store every newly created object in a list so that I can run another script on those items when the whole script is done.
I can create a a list within the global proc that is running, but it feels like Im using to much code and it gets dirty.
I want to call another global proc(or something alike) that runs this small code and stores the information in a list that the first proc can call on later.
The problem I have is getting the information back to the first proc from the second.
I tried using a textScrollList in the UI to store the list, but I get the message that procs cant be nested when I tried that solution.
So basicly I want to run this code in a separate proc:
string $nwObj[];
int $nwObjSze;
string $cSel[];
$cSel =`ls -sl`;
$nwObjSze=size($nwObj);
$nwObj[$nwObjSze] = $cSel[0];
instead of running it after each created object.
Any ideas how to pull it off?
