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
*/
// ===================================
/* FrontTabsPanelsList ( Layout ) v2.0__LITBR__ FrontTabsPanelsList () requires CustomList ( Start; End; Function )__LITBR____LITBR__ //-------------------------------------------------------------------*/__LITBR__ // Agnès Barouh - Decembre 2007 - Bugs / Corrections Report : barouh.agnes@wanadoo.fr__LITBR__ //-------------------------------------------------------------------*/__LITBR____LITBR__Let ([__LITBR__ $First = "|###|"; $rc = ¶;__LITBR__ $ListObj = LayoutObjectNames ( Get ( FileName ); Layout );__LITBR__ __LITBR__ Result = CustomList ( 1; ValueCount ( $ListObj );__LITBR__ "let ([__LITBR__Value = getValue ( $ListObj; [n] );__LITBR__Control = GetLayoutObjectAttribute ( Value; \"isFrontTabPanel\" );__LITBR__Before = GetLayoutObjectAttribute ( Value; \"enclosingObject\" );__LITBR__$First = $First & Case (__LITBR__IsEmpty ( Before ) And Control > 0; $rc & Value;__LITBR__Not IsEmpty ( Before ) And PatternCount ( $rc & $First & $rc; $rc & Before & $rc ) And Control > 0; $rc & Value )__LITBR__ ]; \"\" )" )__LITBR__ ];__LITBR__Substitute ( $First ; ["|###|¶" ; ""] ; [ "|###|" ; "" ] )__LITBR__)__LITBR__& Let ( $First = "" ; "" )__LITBR____LITBR__// ===================================__LITBR__/*__LITBR____LITBR__ This function is published on FileMaker Custom Functions__LITBR__ to check for updates and provide feedback and bug reports__LITBR__ please visit http://www.fmfunctions.com/fid/217__LITBR____LITBR__ Prototype: FrontTabsPanelsList( Layout )__LITBR__ Function Author: Agnès (http://www.fmfunctions.com/mid/46)__LITBR__ Last updated: 20 April 2009__LITBR__ Version: 1.2__LITBR____LITBR__*/__LITBR__// ===================================
Login or register to comment
Create a new account with fmcustomfunctions.com or login to post a comment.
Comments
20 May 2009
great function !
Thank you
Eric(ire)