Print Page | Close Window

[Generators] Object type via relation?

Printed From: MetaCase
Category:
Forum Name: MetaEdit+
Forum Description: All topics relating to MetaEdit+ or DSM
URL: https://www.metacase.com/forums/forum_posts.asp?TID=27
Printed Date: 27.Mar.2026 at 02:14
Software Version: Web Wiz Forums 12.05 - http://www.webwizforums.com


Topic: [Generators] Object type via relation?
Posted By: bullitt168
Subject: [Generators] Object type via relation?
Date 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




Replies:
Posted By: stevek
Date Posted: 28.Apr.2008 at 12:21
Just use this:
 
foreach >RelationName {
    do ~From.() { type }
}


Posted By: bullitt168
Date Posted: 28.Apr.2008 at 12:43
Thank you for the quick reply, that's what I was looking for Smile



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.05 - http://www.webwizforums.com
Copyright ©2001-2022 Web Wiz Ltd. - https://www.webwiz.net