Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Base64Decode method is used for decoding the lines to decode strings that are coded encoded by the Base64 scheme.

Method call syntaxSyntax for method invocation:

Code Block
languagejavascript
function Base64Decode(data_in: String, WideChar: Boolean)

Method arguments:

  1. data_in - is a required argument. Set a line that should be decoded in Base64It specifies the Base64 string that you want to decode;
  2. WideChar - is a required argument. Determines coding It specifies the encoding type. Can take Possible values: 0 or 1 values. If coding the encoding type is Unicode, the argument value is 1, otherwise 0.

Usage examples

Decode the line that is set in Base64 by starting macro №1Example. On macro 1, decode the string specified in Base64. Output the decoding result into in the debug windows window of the Editor-Debugger utility . (Result the result is « the "Axxon PSIM JAVA SCRIPT» line JScript" string).

Code Block
languagejavascript
if (Event.SourceType == "MACRO" && Event.SourceId == "1" && Event.Action == "RUN")
{
                var str = Base64Decode("SW50ZWxsZWN0IEpTY3JpcHQ= ", 0);
                DebugLogString(str);
}