Brian Dunning's FileMaker Custom Functions

lenb ( str ; idx ; lenOfNotASCII )

String length calculation function. For any non ASC II characters, can be counted as 2 or 3 bytes.

  Be the first to rate this function Log in to vote

leinven   leinven - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
lenb ("1234567890一二三四五"; 1; 2)
  Sample output:

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

For ASC II character, count as 1; for others (code > 255), count as you specified. Normally one special character will take 2~3 bytes instead of 1.
Use this function to calculate how may bytes will take if you export string text out from FileMaker to other databases.



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