Fonctions standards

Navigation:  Les scripts > Les scripts en tâche de fond des pages graphiques >

Fonctions standards

Previous pageReturn to chapter overviewNext page

Les fonctions suivantes sont ajoutées par défaut:
 
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
Interpret (*)
IntToHex
IntToStr
IsLeapYear
IsValidIdent
Length
Ln
Low
LowerCase
Machine (*)
Now
Odd
Ord
Pos
Raise
Random
ReadLn
Reset
Rewrite
Round
Scripter (*)
SetOf (*)
ShowMessage
Sin
Sqr
Sqrt
StrToDate
StrToDateTime
StrToFloat
StrToInt
StrToIntDef
StrToTime
Time
TimeToStr
Trim
TrimLeft
TrimRight
Trunc
UpperCase
VarArrayCreate
VarArrayHighBound
VarArrayLowBound
VarIsNull
VarToStr
Write
WriteLn
 

Toutes les fonctions/procédures ajoutées sont similaires à celles définies dans Delphi à l'exception de celles marquées avec un "*"
 
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 scripter component.
 
function SetOf(array): integer;
Returns a set from the array passed. For example:
 
MyFontStyle := SetOf([fsBold, fsItalic]);