Encr_Decompress (function reference)

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

Encr_Decompress

Decompresses text that was previously compressed.

SyntaxFunction badge

Encr_Decompress ( switches ; text )

Parameters

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

Returned Result

Data type returned

Text

Result

the decompressed text
OR
“$$ Decompression Error” + an error code, when the decompression failed.

Originated in

Troi Encryptor Plug-in 1.5

Compatibility

FileMaker Pro 14 to 17

Considerations

NOTE: this function can only decompress text that was previously compressed with “Encr_Compress” function (ZLIB algorithm). Currently no other algorithms, like ZIP and Stuffit (.sit) are supported.

Example

Set Field [ result ; Encr_Decompress ( "-Unused" ; "xú3426153∑∞T0ƒdWÿ" ) ]

will result in the decompressed string: “123456789 123456789 123456789”

Example 2

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

letterContentsCalc   calculation    Unstored = Encr_Decompress ( "-Unused" ; letterCompressed )

this field will contain the uncompressed version of the contents.

Related functionFunction badge

Encr_Compress

Related topics

Troi Encryptor Plug-in online help (overview)


Online Help Page for Troi Encryptor Plug-in for 14 to 17 –> Encr_Decompress (encrp4251) 2019-0212 17:51:03