System Library

<< Click to Display Table of Contents >>

Navigation:  Using SyncBackPro > Technical Reference > Scripting >

System Library

 

There are a number of built-in functions that are part of the scripting system. SyncBackPro also provides extra functions via SBSystem and other miscellaneous functions and classes. There are also built-in constants and functions provided for compatibility with VBScript (if you are using the Basic language).

 

For help and details on these functions, refer to the Delphi online documentation:

 

Abs

AnsiCompareStr

AnsiCompareText

AnsiLowerCase

AnsiUpperCase

Append

ArcTan

Assigned

AssignFile

Beep

Chdir

Chr

CloseFile

CompareStr

CompareText

Copy

Cos

CreateOleObject

Date

DateTimeToStr

DateToStr

DayOfWeek

Dec

DecodeDate

DecodeTime

Delete

EncodeDate

EncodeTime

EOF

Exp

FilePos

FileSize

FloatToStr

Format

FormatDateTime

FormatFloat

Frac

GetActiveOleObject

High

Inc

IncMonth

InputQuery

Insert

Int

IntToHex

IntToStr

IsLeapYear

IsValidIdent

Length

Ln

Low

LowerCase

Now

Odd

Ord

Pos (see also PosEx)

Raise

Random

ReadLn (see also ReadStringFromFile)

Reset

Rewrite

Round

ShowMessage (use SBSystem.ShowMessage instead)

Sin

Sqr

Sqrt

StrToDate

StrToDateTime

StrToFloat

StrToInt

StrToIntDef

StrToTime

Time

TimeToStr

Trim

TrimLeft

TrimRight

Trunc

UpperCase

VarArrayCreate

VarArrayHighBound

VarArrayLowBound

VarIsNull

VarToStr

Write

WriteLn (see also WriteStringToFile)

 

 

There are also some other special functions:

 

procedure Interpret(Ascript: string);

Executes the script source code specified by Ascript parameter

 

function Machine: TatVirtualMachine;

Returns the current virtual machine executing the script.

 

function Scripter: TatCustomScripter;

Returns the current script component.

 

function SetOf(array): integer;

Returns a set from the array passed. For example: MyFontStyle := SetOf([fsBold, fsItalic]);

 

 

 

All Content: 2BrightSparks Pte Ltd © 2003-2024