Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » [MOFScript]couldn't print list element
[MOFScript]couldn't print list element [message #620041] Fri, 22 August 2008 13:49
yeliu is currently offline yeliuFriend
Messages: 145
Registered: July 2009
Senior Member
Hello,
I have a class Sca,with one attribute List<String> xxx,I want print all
the elements in this list,I write the following statment in MOFScript.
In the context of Sca,
self.xxx->forEach(s:string)
print(s+",")
when I execute the code (of course ,this is not an empty list),none of the
elements is printed.Does anyone knows what the problem is?


Thanks a lot!

Ye
Previous Topic:[Epsilon] [Eugenia] Diagram Imp. Samples
Next Topic:[Epsilon] [Eugenia] EnumType Attributes
Goto Forum:
  


Current Time: Fri Nov 21 02:35:42 GMT 2014

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

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