Jonespelsia

8146 palavras 33 páginas
FastScript 1.9
Scripting library

Developer's manual

Copyright (c) 1998-2005 by Fast Reports Inc.

Author: Alexander Tzyganenko e-mail: tz@fast-report.com home page: http://www.fastreport.ru http://www.fast-report.com

Introduction

What is FastScript
Quick start
Features and missing features
Language reference
Script structure
Data types
Classes
Functions
Events
Enumerations and sets
Arrays

What is FastScript

FastScript is a scripting library. It is useful for the programmers who want to add scripting ability to their projects. FastScript is written on 100% Object Pascal and can be installed in Borland Delphi 4-7, C++Builder 4-6 and Kylix 1-3.
Unique feature of FastScript is ability to use several languages (PascalScript, C++Script, JScript and BasicScript), so you can write scripts using your favourite language. FastScript doesn't use Microsoft Scripting Host, so it can be used in Windows and Linux environment. FastScript combines cross-platform scripting, fast code execution, small footprint, rich set of features and a splendid scalability. Make your applications the most flexible and powerful ones with FastScript!

Quick start

Here is a sample code which demonstrates the easiest way of using FastScript. For the correct work of the example put the components fsScript1: TfsScript and fsPascal1: TfsPascal on the form .

uses FS_iInterpreter;

procedure TForm1.Button1Click(Sender: TObject); begin fsScript1.Clear; // do this if you running many scripts from one component fsScript1.Lines.Text := 'begin ShowMessage(''Hello!'') end.'; fsScript1.Parent := fsGlobalUnit; // use standard classes and methods fsScript1.SyntaxType := 'PascalScript'; if fsScript1.Compile then fsScript1.Execute else ShowMessage(fsScript1.ErrorMsg); end; As you can see, there is nothing difficult here. At first we fill in the fsScript1.Lines property

Relacionados