Clicky

Script Editor

The script editor is used to create and edit a script in Basic or Pascal.  Use a script when you want to process and extract information using a programming language. The script will be executed at run time.

The following actions can use a script:

1

The script editor

2

The combo box for selecting the script language

3

Press Run (F9) to execute the script or Debug for step to step execution.

4

Press on Accept to save the script or on Cancel to discard it

5

Test values for testing the script. You can load an EML email by pressing on "Load Test data" at the tool bar

6

The test result will be displayed here

7

Shortcuts for email parts that can be used in the script

Usage

The last line of the script should be:

Pascal:

Return:= expression

Example:

Return:= Copy(Subject, 1 , 5);

Example:

uses

 Classes, Controls, SysUtils;

 

function HeadersSecondLine: string;

var

 hList: TStringList;

begin

hList:= TstringList.Create;

try

  hList.Text:= Headers;

  if hList.Count>1 then

    Result:= hList.Strings[1]

  else

    Result:= 'empty';

finally  

 hList.Free;    

end;

end;  

Result:= HeadersSecondLine;  

Basic:

MAIN = expression

Syntax

The syntax used by the languages is:

Still need help? Contact Us Contact Us