ShowBar ( )

Function stats

Average user rating
1.0000
34
131
9999
Support
FileMaker 8.0 +
Date posted
09 December 2008
Version
1
Recursive function
No

Author Info
 The Shadow

22 functions

Average Rating 4.3

author_avatar



 

Function overview

Prototype

ShowBar  ( amount;   maxValue;   color )


Parameters

amount  The amount for the bar length


maxValue  The max value for the field


color  The bar color


Description

Tags:  Bargraph  

Shows a bar for a number, followed by the number itself. Good to use in an Auto-enter field with replace.

Examples

Sample input

ShowBar( 5; 100; RGB(0;0;0) )


Sample output

█ 5

 

Function code

BarOnly(amount; maxValue; color) & " " & GetAsNumber(amount)

// ===================================
/*

    This function is published on FileMaker Custom Functions
    to check for updates and provide feedback and bug reports
    please visit http://www.fmfunctions.com/fid/131

    Prototype: ShowBar( amount; maxValue; color )
    Function Author: The Shadow (http://www.fmfunctions.com/mid/34)
    Last updated: 09 December 2008
    Version: 1

*/
// ===================================