What it is
The eXpress Script Editor is the authoring environment for scripts that drive the eXpress family. It supports three languages — BasicScript, PascalScript, and JScript — plus a debugger, a Tools menu (Check Script F4, Compile F5, Mass Compiler, Dialog Designer), and a configurable editor (font, tab stops, syntax highlight colors).
Choosing a language
- BasicScript — Sub Main / End Sub structure, Dim / End Type, If/ElseIf, Do/Loop, For/Next, With
- PascalScript — begin/end blocks, Procedure/Function with typed parameters, Const, Case, While/Repeat
- JScript — function blocks, var declarations, for/while/switch, true C-family syntax
Sub Main
Dim x As Integer
For x = 1 To 10
If x Mod 2 = 0 Then ShowMessage(IntToStr(x))
Next x
End SubCommon elements across all three languages
- Variables, array index referencing, and variable scope rules
- Uses / Imports directives to bring in eXpress scripting classes
- Built-in conversion, formatting, date/time, and string-handling functions
- Wait(milliseconds), ShowMessage(string), and other shared procedures
eXpress scripting classes
Scripts have access to a set of eXpress-specific classes for clipboard handling, printing (BeginDoc/EndDoc), dialog forms (LoadForm, ShowForm, mrOk/mrCancel result codes), and component event hooks. The Dialog Designer (F10) builds forms visually and emits the matching object references your script can manipulate.
var df : TDialogForm;
rslt : Integer;
begin
df := TDialogForm.Create;
if df.LoadForm('myform.frm') then begin
rslt := df.ShowForm;
if rslt = mrOk then ShowMessage('Saved');
end;
end.Common dialog classes
- TOpenDialog / TSaveDialog — file selection
- TPrintDialog / TPrintSetupDialog — printer selection and setup
- TFontDialog / TColorDialog — visual pickers reused across forms
