Brian Dunning's FileMaker Custom Functions

progressBarASCII ( completePct ; totalBlocks ; colorBar ; colorBackground ; fontSize ; showPercent )

Renders a colored text-based progress bar using hex colors, font size, and percentage, with optional percent label.

  Be the first to rate this function Log in to vote

Jonni™   Jonni™ - Show more from this author

  Sample input:
progressBarASCII ( 30 ; 10 ; "#7962a8" ; "#e8deee" ; 12 ; True )
  Sample output:
Text based progress bar

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This custom function generates a visual progress bar composed of block characters (█) based on a given percentage. It accepts hex color codes for the foreground (completed portion) and background (remaining portion), converts them to RGB, and styles the result using TextColor and TextFontSize. The percentage is rounded up to the nearest 10% to determine block count, and an optional flag controls whether to display the numeric percentage after the bar.

Simple and effective. Suits for layout calculations.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 21 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: