Documentation for Intellect 4.11.0-4.11.3. Documentation for other versions of Intellect is available too.

Previous page Next page


You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

Method call syntax

function Base64Decode(data_in: String, WideChar: Boolean)

Method arguments:

  1. data_in - required argument. Set a line that should be decoded in Base64;
  2. WideChar - required argument. Determines coding type. Can take 0 or 1 values. If coding type is Unicode, argument value is 1, otherwise 0.

Usage examples

Decode the line that is set in Base64 by starting macro №1. Output the decoding result into the debug windows of the Editor-Debugger utility. (Result is « Intellect JAVA SCRIPT» line).

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