Skip to main content



      Home
Home » Archived » GMT (Generative Modeling Technologies) » OAW xpt and counters
OAW xpt and counters [message #618083] Mon, 23 June 2008 12:44
Eclipse UserFriend
Hello ... I am porting a code generator to OAW from XSLT ...

Is there a way i can store the number of times something meeting some
foreach condition ?

I kinda wanna do something like this below half baked pseudo code:

int count = 0;
«FOREACH //get some list ...
//satisfy some condition
count +=1;
«ENDFOREACH»


Reason being ... is that i need to create an array of objects:

objects * myarray = new objects()[/*num of special objects in model*/]

Cheers,

Jim
Previous Topic:Re: [MOFScript] Problem with metamodel setting in Java integration
Next Topic:[TCS] Is "autoCreate=ifmissing" usable?
Goto Forum:
  


Current Time: Mon Mar 17 21:54:48 EDT 2025

Powered by FUDForum. Page generated in 0.02524 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top