EnclosingObjects ( )

Function stats

Average user rating
37
92
9999
Support
FileMaker 8.5 +
Date posted
05 December 2008
Last updated
15 May 2009
Version
Recursive function
No

Author Info
 Fabrice

74 functions

Average Rating 4.4

author_avatar



 

Function overview

Prototype

EnclosingObjects  ( _objectName )


Parameters

_objectName  


Description

Tags:  Layout objects   Layout  

returns the list of all enclosing objects of a layout object, in reverse order. (smallest first)

Requires Agnès Barouh's CustomList
http://www.briandunning.com/cf/747

Not recursive

Examples

Sample input

fieldObjectName


Sample output

rectangleName¶PortalName¶TabName

 

Function code

/*
EnclosingObjects ( _objectName )
by Fabrice Nordmann

v.1, Dec 2007

returns the list of all enclosing objects of a layout object, in reverse order. (smallest first)

Requires Agnès Barouh's CustomList
http://www.briandunning.com/cf/747

Not recursive
*/

Let ( $x = _objectName
;
CustomList ( 1 ; ValueCount ( LayoutObjectNames ( Get ( FileName ) ; Get ( LayoutName ))) ; "case ( not isempty ( $x ) ; getlayoutobjectattribute ( $x ; \"enclosingobject\" ) & let([ $x = getlayoutobjectattribute ( $x ; \"enclosingobject\" )];\"\"))" )
)

// ===================================
/*

    This function is published on FileMaker Custom Functions
    to check for updates and provide feedback and bug reports
    please visit http://www.fmfunctions.com/fid/92

    Prototype: EnclosingObjects( _objectName )
    Function Author: Fabrice (http://www.fmfunctions.com/mid/37)
    Last updated: 15 May 2009
    Version: 1.2

*/
// ===================================