decstr()

Function group Execute on client Platform(s)
String NO All

Syntax

decstr(string[,key,unicode=ktrue])

Description

Decodes string (encoded with encstr()) using key and returns result. key can be a string of 1-255 characters in length, previously used with encstr(). If omitted, uses the default key. If unicode false and string not marked as Unicode, string must have been encoded by non-Unicode Omnis.

Note that decstr(encstr(string,key),key) = string.

Example

Calculate lEncoded as encstr('Testing',10)
Calculate lDecoded as decstr(lEncoded,10)
; returns the original string 'Testing'