WilliamCB Posted July 30, 2009 Posted July 30, 2009 I am looking for a script or custom function that will return the name of the frontmost tab. I have up to three levels of nesting, and by the frontmost tab, I mean the insidemost tab currently displayed. So far, the following custom functions have failed to work for me, consistently returning the wrong tab name: * SeedCode_FrontTabName (and the Faster version) * tabsFrontmost (with related functions). Does anybody have any suggestions for a more reliable solution? I'm amazed I can't get this to work.
WilliamCB Posted July 30, 2009 Author Posted July 30, 2009 OK, I've now also tried the custom function recommended in another thread, viz: * frontTabs This also returns the wrong tab name. Mostly these functions fail by returning the enclosing rather than the enclosed tab. But some return a sibling.
WilliamCB Posted July 30, 2009 Author Posted July 30, 2009 OK. Now I have found a solution. I have quit from Filemaker and restarted it. Now the SeedCode function returns the correct value. This is a weird kind of crash in Filemaker in which only the custom functions stop working. And they don't stop working altogether, they just start returning the wrong results. It happened to me once before in FM9, and now I have had it in FM10!
mr_vodka Posted July 31, 2009 Posted July 31, 2009 Try these: http://www.fmfunctions.com/fid/217 or http://www.fmfunctions.com/fid/97
comment Posted July 31, 2009 Posted July 31, 2009 I have quit from Filemaker and restarted it. Now the SeedCode function returns the correct value. How are you testing this? Keep in mind that even an unstored calculation field may not refresh when tab panels are switched.
WilliamCB Posted July 31, 2009 Author Posted July 31, 2009 (edited) There's a button (not on any of the tabs). When I click it, it is supposed to get the name of the frontmost tab and hold it as a variable. It's that step that was failing - so no fields involved at all. Edited July 31, 2009 by Guest
WilliamCB Posted July 31, 2009 Author Posted July 31, 2009 Yes, FrontTabsPanelsList also returns the correct result now I have restarted Filemaker.
Recommended Posts
This topic is 5595 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now