MetaCase Homepage
Forum Home Forum Home > > MetaEdit+
  New Posts New Posts RSS Feed - [Generators] Object type via relation?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[Generators] Object type via relation?

 Post Reply Post Reply
Author
Message
bullitt168 View Drop Down
Member
Member
Avatar

Joined: 28.Apr.2008
Location: Bremen, Germany
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote bullitt168 Quote  Post ReplyReply Direct Link To This Post Topic: [Generators] Object type via relation?
    Posted: 28.Apr.2008 at 12:06
Hello!
I want to check what kind of object is connected to a relation, something like

foreach >RelationName {
    ~From.().type
}

but this doesn't work, neigher ~From.type or anything similar. My workaround now looks like

foreach >RelationName {
    do ~From.() { variable 'fromType' write type close }
    $fromType
}

Is there a better way to get the type of connected objects?

Thank you,

Bastian

Back to Top
stevek View Drop Down
MetaCase
MetaCase
Avatar

Joined: 11.Mar.2008
Points: 643
Post Options Post Options   Thanks (0) Thanks(0)   Quote stevek Quote  Post ReplyReply Direct Link To This Post Posted: 28.Apr.2008 at 12:21
Just use this:
 
foreach >RelationName {
    do ~From.() { type }
}
Back to Top
bullitt168 View Drop Down
Member
Member
Avatar

Joined: 28.Apr.2008
Location: Bremen, Germany
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote bullitt168 Quote  Post ReplyReply Direct Link To This Post Posted: 28.Apr.2008 at 12:43
Thank you for the quick reply, that's what I was looking for Smile
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.05
Copyright ©2001-2022 Web Wiz Ltd.

This page was generated in 0.023 seconds.