func_ActiveTab
Rate this function: Average rating: 3.2 (5 votes) Discuss this Custom Function
Michael Kupietz, Michael Kupietz, FileMaker Pro Consultant
http://www.kupietz.com
Return the number of the currently active tab in a tab object
Sample Input:
|
Sample Output:
|
Description:
This function uses a recursive call and FileMaker's design functions to return the number of the currently active tab in a tab object on the current layout. Tabs must be named as "T" followed by the number of the tab , IE as T1...T10 for 10 tabs. (This is the name assigned in Object Info, not the text label displayed on the tab.)
Note: You may not use the variable $$AcTabNo elsewhere in your file, as calling this function will reset it.
You can take this much further by storing index lists of tab names (which can be created by carefully parsing the output of the LayoutObjectNames design function) in an unstored calc - that's beyond the scope of this simple solution, but definitely doable.
Off the top of my head, this probably won't work well for nested tab objects, or a layout with more than one tab object on it, but could be very easily modified to do so.
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:There are no comments yet. Be the first to post a comment about this Custom Function! Please try to keep it brief & to the point. Anyone can post:
|
Newest Custom Functions:
| 1. |
Bin2Hex ( binary ) |
| |
(Sat, Mar 13, 10:08pm) |
| 2. |
SlideView (text) |
| |
(Sat, Mar 13, 8:40pm) |
| 3. |
HashFNV1a64 ( text ; empty ) |
| |
(Sat, Mar 13, 6:23pm) |
| 4. |
HashFNV1a32 ( text ; empty ) |
| |
(Sat, Mar 13, 5:55pm) |
| 5. |
XORbin( bin0 ; bin1 ; "" ) |
| |
(Sat, Mar 13, 4:35pm) |
| 6. |
cfMatch ( value_to_test; match_Value; match_operator ) |
| |
(Thu, Mar 11, 10:45pm) |
| 7. |
DeleteMiddleText ( Value ; StringStart ; StringEnd ) |
| |
(Wed, Mar 10, 8:27am) |
| 8. |
Codify( theText; code_option ) |
| |
(Sun, Mar 07, 8:17pm) |
 |
|