Програмне забезпечення Dystlab має власний скриптовий рушій (Scripter), який підтримує мови програмування Pascal та Basic. Scripter можна використовувати для розробки застосунків, рисування рамок у звітах, графічної візуалізації, тощо.


Бібліотека Project

function Project.ActiveDocumentGUID: string;

Returns the GUID (unique string) of the active document. If there are no active documents, returns ''.
Вертає GUID (унікальну строку) активного документа. Якщо активних документів немає, вертає ''.

Example: S := Project.ActiveDocumentGUID;

function Project.ActiveDocumentTitle: string;

Returns the name of the active document. If there are no active documents, returns ''.
Вертає ім'я активного документа. Якщо активних документів немає, вертає ''.

Example: S := Project.ActiveDocumentTitle;

procedure Project.LoadListViewFromFile(ListView: TListView; FileName: string; Props, Columns, Groups, Items: Boolean);

Loads the contents of the file FileName into the ListView component.
Завантажує вміст файлу в компонент ListView.

Example: Project.LoadListViewFromFile(ListView1, 'C:\file1.txt', True, True, True, True);

procedure Project.LoadListViewFromCSV(ListView: TListView; FileName: string; TotalColumns: Integer; ColumnDelimiter: Char; SkipRows: Integer; AutoIndex: Boolean);

Loads the contents of a CSV file into the ListView component.
Завантажує вміст CSV-файлу в компонент ListView.

Example: Project.LoadListViewFromCSV(ListView1, 'C:\file1.csv', 4, ';', 1, True);

function Project.OpenFileDialog: string;

Displays the file opening dialog. Returns the file name or '' if the user canceled the operation.
Показує діалог відкриття файлу. Вертає ім'я файлу або '', якщо користувач відмінив операцію.

Example: if Project.OpenFileDialog = '' then Exit;

function Project.SaveFileDialog: string;

Displays the file saving dialog. Returns the file name or '' if the user canceled the operation.
Показує діалог збереження файлу. Вертає ім'я файлу або '', якщо користувач відмінив операцію.

Example: if Project.SaveFileDialog = '' then Exit;

procedure Project.SaveListViewToFile(ListView: TListView; FileName: string);

Saves the contents of the ListView component to a file FileName.
Зберігає вміст компоненту ListView в файл FileName.

Example: Project.SaveListViewToFile(ListView1, 'C:\file1.txt');

function Project.TextConstant(Name: string): string;

Returns the text constant of the project by name Name.
Вертає текстову константу проєкта за ім'ям Name.

Example: S := Project.TextConstant('ProjectName');