Encr_Compress (function reference)

By February 1, 2019June 10th, 2020Online Help, Troi Encryptor Plug-in
Troi Encryptor Plug-in for FileMaker Pro


Compresses text using a ZLIB algorithm.

SyntaxFunction badge

Encr_Compress ( switches ; text )


switches reserved for future use, leave empty or set to "-Unused"
text the text to compress

Returned Result

Data type returned



the compressed text string.

Originated in

Troi Encryptor Plug-in 1.2


FileMaker Pro 15 to 19


NOTE 1: short strings (less than 20 characters) of text might be longer after compression.
NOTE 2: the compression result can contain all ASCII codes (0-255). See “Encr_EncodeSafeAscii” for conversion to safe ASCII codes.


Set Field [ result ; Encr_Compress ( "-Unused" ; "123456789 123456789 123456789" ) ]

will result in the compressed string: “xú3426153∑∞T0ƒdWÿ”

Example 2

In a document database you have defined a text field named “letterContents” which contains the main part of a letter. Then you can define a calculation field:

LetterCompressCalc   calculation     = Encr_Compress ( "-Unused" ;  LetterContents )

this field will contain the compressed version of the field.

Related functionsFunction badge


Related topics

Troi Encryptor Plug-in online help (overview)

Online Help Page for Troi Encryptor Plug-in for 15 to 19 –> Encr_Compress (encrp4231) 2020-0610 16:19:13