| Problem using `pre` to declare global data [message #629547] |
Tue, 28 September 2010 12:16  |
Andy Ed Messages: 41 Registered: December 2009 |
Member |
|
|
I'm having a problem sharing data between rules/operation using the following style (using pre to declare 'globals').
pre{
var storedIniValues := new OrderedSet;
}
operation op1(){
var item := new m!elem;
storedIniValues .add(item);
}
Sometimes this approach does work, sometimes not; with my current problem I get an exception stating that Type storedIniValues is not found. Do you have any ideas why this approach works sometimes but not others?
cheers, Andy
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01665 seconds