Encr_DecodeSafeAscii (function reference)

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

Encr_DecodeSafeAscii

Decodes a text in the SafeASCII format to the original text.

SyntaxFunction badge

Encr_DecodeSafeAscii ( switches ; text )

Parameters

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

Returned Result

Data type returned

Text

Result

the original text
OR
“$$-301 (Decoding Error)”, when the decoding failed.

Originated in

Troi Encryptor Plug-in 1.5

Compatibility

FileMaker Pro 14 to 17

Considerations

See also: Encr_EncodeSafeAscii and Encr_EncodeShortSafeAscii.

Example

Set Field [ result ; Encr_DecodeSafeAscii ( "-Unused" ; 
  "this text is ignored!!!
    %Troi SafeAscii v1.0
     .V-PDon/Tt-Pforget-Pto-Phave-Pfun-\-PG.Pnther-Pand-PB/>rg-Q-P
   %End SafeAscii v1.0
   this text too..." ) ]

gives this result: “• Don’t forget to have fun, Günther and Børg! ”

Example 2

In a database you have defined a text field named “receivedEmail” which contains the body of an email which contains a part that is encoded as ASCII Safe. Then you can define a calculation field:

DecodedCalc   calculation     = Encr_DecodeSafeAscii ( "-Unused" ;  ReceivedEmail )

this field will contain the decoded text.

Related functionsFunction badge

Encr_EncodeSafeAscii
Encr_EncodeShortSafeAscii

Related topics

Troi Encryptor Plug-in online help (overview)


Online Help Page for Troi Encryptor Plug-in for 14 to 17 –> Encr_DecodeSafeAscii (encrp4241) 2019-0212 17:53:20