Brian Dunning's FileMaker Custom Functions

ValidateMagStripes ( Track1 ; Track2 ; Track3 )


  Be the first to rate this function Log in to vote

Steven Law   Steven Law - Show more from this author
LSC Media Enterprise

Share on Facebook Share on Twitter

  Sample input:
ValidateMagStripes (1234567890 ,;4065893017613664=200422199201073101?
; 0 )
  Sample output:

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

This will analyze the data intended for encoding onto,
or retrieval from, the tracks of a magnetic stripe on, for
example, a plastic card. It will identify character input
problems such as invalid ASCII characters per track,
test for data length per track, and determine if starting
and ending sentinels are correct per track.

The calculated result is three lines of text separated by
carriage returns (so expand your text result field to
view all calculated lines).

When testing for data length I have not taken into account
the LRC, since it is never a part of data encoding, and never
a product of reading the mag stripe (within the sentinels).



Log in to post comments.


Note: these functions are not guaranteed or supported by 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 15 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: