Which Tab is Front-Most?

Version 2

     

    Custom Function

     

    Compatibility
    Creator
    Mac OS X, Windows
    Matthew Leering
    FMP 8.5, 9, 10, 11
    CoreSolutions Software Inc.
    Web: No
    File Type: None
    Server: Yes
    FileSize: 0 kilobytes
    http://www.coresolutions.ca

    Description

    This custom function accepts a list of values representing the names of tab-panels, and will output the name of the front-most tab-panel.

     


    Code

    Let

    (

    [

    _iterate = ValueCount ( _listOfTabNames ) > 1;

    _thisTabName = GetValue ( _listOfTabNames ; 1 );

    _nextList = RightValues ( _listOfTabNames ; ValueCount ( _listOfTabNames ) - 1 );

    _thisIsTheOne = Evaluate ( GetLayoutObjectAttribute ( _thisTabName ; "isFrontTabPanel" ) )

    ];

     

    Case

    (

    _thisIsTheOne;

    _thisTabName;

    //Else

    If ( _iterate ; WhichTabIsFrontMost__cf ( _nextList ) )

    )

     

     

    )//End Of Let Statement

     

     

     

    /*

    Created by : Matthew Leering

    Script Name: Which Tab Is Front-Most ???

     

    Purpose: to return the name of the front-most tab-panel

     

    Special Notes: Provide a return separated list of possible tab-panel names as a parameter to this function.

    */

     

    Sample Input

    Sample Output

    tab1

    tab2

    tab3

    tab4


    tab3

    Developer's Notes

     

    Custom Function Name = WhichTabIsFrontMost__cf

    Parameter 1 Name =_listOfTabNames

     

     

     


    FileMaker Inc. provides this content on an “As Is” basis, without any warranty, and subject to the terms of the FileMaker Technical Network Agreement. FileMaker makes no representations and is not liable for any content or related information. You may use the content as part of your own solutions and for your customers, but you may not otherwise publicly distribute any content that you did not submit. ©2009-2011 FileMaker, Inc. All Rights Reserved. FileMaker is a trademark of FileMaker, Inc. registered in the U.S. and other countries.