The Gradient( text, colors ) custom function paints the specified text with colors, applying a smooth gradient if more than one color is specified.
It may be not be terrible useful but looks nice and is fun to study as an example of a recursive function.
Technorati tags: FileMaker, FileMaker 7, FileMaker 8, custom function, gradient.
Continue reading "Use the Gradient() function to apply a smooth gradient to a string" »
This function is designed to test other custom functions using the extreme programming approach and, most probably, a custom function test unit (if you haven't read the referenced post, you'd better start with it). The function works fairly well both as a specification and as a test engine.
Technorati tags: FileMaker, FileMaker 7, FileMaker 8, custom function, test unit.
Continue reading "Assert Equals(): a custom function to test other custom functions " »
Using some values in FileMaker formulas and scripts isn't very convenient because they are difficult to type or not clearly visible. The samples of these are spaces and tab characters, special symbols like "¶" and an empty value. A possible solution is to use “constant” custom functions instead. Here's a description of four: NULL, TAB, CR and SPACE.
Technorati tags: FileMaker, FileMaker 7, FileMaker 8, custom function.
Continue reading "“Constant” custom functions to save time and write clearer code" »
An effective approach to writing code is to use automated tests. It's very simple to use the method when developing FileMaker custom functions. All it takes is a little table (you can use the provided sample) and about five minutes to add it to the project you develop.
Technorati tags: FileMaker, FileMaker 7, FileMaker 8, custom function, test unit.
Continue reading "Develop custom functions more effectively using a simple test unit" »