Converting wildcard expressions to collections

You can use GetValue to convert a string expression into a single object:

var obj = GetValue( Obj.FullName + ".polymsh.cls.*.Material" );

To get a collection of objects, use an XSICollection:

var allColl = new ActiveXObject("XSI.Collection");
allColl.items = Obj.FullName + ".polymsh.cls.*.Material"

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s