Encr_Compress (function reference)

By February 1, 2019April 13th, 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 )


switchesreserved for future use, leave empty or set to "-Unused"
textthe text to compress

Returned Result

Data type returned



the compressed text string.

Originated in

Troi Encryptor Plug-in 1.2


FileMaker Pro 14 to 17


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ƒd�Wÿ”

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 14 to 17 –> Encr_Compress (encrp4231) 2019-0212 17:54:53