Brian Dunning's FileMaker Custom Functions

Encode ( text ; code ; startValue )

A simple encoder

  Average rating: 4.2 (36 votes) Log in to vote

Daniele Raybaudi   Daniele Raybaudi - Show more from this author
ACI
http://www.aci.it

Share on Facebook Share on Twitter

  Sample input:
Encode("abc";"abcdef";1)
Encode("abc";"abcdef";0)
  Sample output:
"1 2 3 "
"0 1 2 "

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

Encode function

Author
Daniele Raybaudi and friends

Format
Encode ( text ; code ; startValue )

Parameters
text - any text expression or text field
code - a string of positioned characters
startValue - the number to assign to the first character of code

Data type returned
text

Description
Returns a number, chosen by the position assigned to any individual character, for all characters of the Text.
It add also a space between numbers.
It isn't case sensitive.

 

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 20 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: