FrontTabsPanelsList ( )

Function stats

Average user rating
4.0000
46
217
9999
Support
FileMaker 8.5 +
Date posted
20 April 2009
Last updated
20 April 2009
Version
Recursive function
No

Author Info
 Agnès

17 functions

Average Rating 4.6

author_avatar



 

Function overview

Prototype

FrontTabsPanelsList  ( Layout )


Parameters

Layout   Get ( LayoutName ) or Name of Layout


Description

Tags:  Objects   Layout   Custom List  

Returns a list of front and visible Tabs panels on a layout.

Examples

Sample input

FrontTabsPanelsList ( Get ( LayoutName ) )


Sample output

Chapter_0
0_1
1

 

Function code

/* FrontTabsPanelsList ( Layout ) v2.0
FrontTabsPanelsList () requires CustomList ( Start; End; Function )

//-------------------------------------------------------------------*/
// Agnès Barouh - Decembre 2007 - Bugs / Corrections Report : barouh.agnes@wanadoo.fr
//-------------------------------------------------------------------*/

Let ([
$First = "|###|"; $rc = ¶;
$ListObj = LayoutObjectNames ( Get ( FileName ); Layout );

Result = CustomList ( 1; ValueCount ( $ListObj );
"let ([
Value = getValue ( $ListObj; [n] );
Control = GetLayoutObjectAttribute ( Value; \"isFrontTabPanel\" );
Before = GetLayoutObjectAttribute ( Value; \"enclosingObject\" );
$First = $First & Case (
IsEmpty ( Before ) And Control > 0; $rc & Value;
Not IsEmpty ( Before ) And PatternCount ( $rc & $First & $rc; $rc & Before & $rc ) And Control > 0; $rc & Value )
]; \"\" )" )
];
Substitute ( $First ; ["|###|¶" ; ""] ; [ "|###|" ; "" ] )
)
& Let ( $First = "" ; "" )

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

    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/217

    Prototype: FrontTabsPanelsList( Layout )
    Function Author: Agnès (http://www.fmfunctions.com/mid/46)
    Last updated: 20 April 2009
    Version: 1.2

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

 

Comments

Eric
21 May 2009



Cuckoo Miss Agnès
great function !
Thank you
Eric(ire)
  General comment