buttonbar.getActiveSegmentContent ( buttonBarObjectName ; optional_listButtonBarSegments )
Returns the text label (i.e., `content`) of the Button Bar Segment that is active. Useful for determining which button a user clicked.
Average rating: 4.8 (13 votes) Log in to vote
Cristos Lianides-Chin - Show more from this author
Codence https://www.codence.com |
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
# buttonbar.getActiveSegmentContent ( buttonBarObjectName ; optional_listButtonBarSegments )
## v1.0.0 2016-09-07
Returns the text label (i.e., `content`) of the Button Bar Segment that is active. Useful for determining which button a user clicked.
## USAGE
buttonbar.getActiveSegmentContent ( "headerNavigation_ButtonList" ; "" )
## PARAMETERS
### buttonBarObjectName
- The name (from the Inspector) of the Button Bar layout object.
### optional_listButtonBarSegments
- Used for recursion, generally should be omitted (see "USAGE" below).
## RETURNS
- The text label given to the button bar segment, e.g. `"Customer Orders"`.
## REQUIRES
- Button Bar must have a name in the Inspector
- Each Segment of the Button Bar must have a name in the inspector
## CHANGELOG
### [2016-09-07 cristos@anchorbuoysoftware.com](http://www.anchorbuoysoftware.com)
- Function created
- Based on suggestions from https://fmslug.slack.com/archives/general/p1473279629000181 by [Tony White](http://www.twdesigns.com)
Comments
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.