String
Manipulation Functions
function AddBackSlash(str: string): string;
function Copy(S; Index, Count: Integer): string;
function Length(S): Integer;
function MidStr(const AText: string; const AStart, ACount: Integer):
string;
function Pos(Substr: string; S: string): Integer;
function PosEx(const SubStr, S: string; Offset: Cardinal = 1): Integer;
function RightStr(const AText: string; const ACount: Integer): string;
function Trim(const S: string): string;
function TrimLeft(const S: string): string;
procedure Delete(var S: string; Index, Count:Integer);
procedure Insert(Source: string; var S: string; Index: Integer);
File
Management Routines
function CreateDir(const Dir: string): Boolean;
function ExtractFileDir(const FileName: string): string;
function ExtractFilePath(const FileName: string): string;
function ExtractFileName(const FileName: string): string;
function DirectoryExists(const Directory: string): Boolean;
function FileExists(const FileName: string): Boolean;
function ForceDirectories(Dir: string): Boolean;
function GetCurrentDir: string;
function RemoveDir(const Dir: string): Boolean;
function SetCurrentDir(const Dir: string): Boolean;
function SelectDirectory(const Caption: string; const Root: WideString;
var Directory: string): Boolean;
procedure Rewrite(FileName : string);
procedure Reset(FileName : string);
procedure Writefl(Str: string);
procedure Readfl(var Str: string);
function EndOfFile: boolean;
procedure CloseFile;
Date and
Time Routines
function IntToStr(Value: Integer): string;
function Date: TDateTime;
function DateTimeToUnix(D: TDateTime): Int64;
function DateToStr(D: TDateTime): string;
function DayOfWeek(const DateTime: TDateTime): Word;
procedure DecodeDate(const DateTime: TDateTime; var Year, Month, Day:
Word);
procedure DecodeTime(const DateTime: TDateTime; var Hour, Min, Sec, MSec:
Word);
function EncodeDate(Year, Month, Day: Word): TDateTime;
function EncodeTime(Hour, Min, Sec, MSec: Word): TDateTime;
function FormatDateTime(const fmt: string; D: TDateTime): string;
function Now: TDateTime;
function StrToDate(const s: string): TDateTime;
function Time: TDateTime;
function TryEncodeDate(Year, Month, Day: Word; var Date: TDateTime):
Boolean;
function TryEncodeTime(Hour, Min, Sec, MSec: Word; var Time: TDateTime):
Boolean;
function UnixToDateTime(U: Int64): TDateTime;
Datatype
Conversion Functions
function IntToStr(Value: Integer): string;
function StrToIntDef(const S: string; const Default: Integer): Integer;
* Note: Some newer functions are only supported in the latest Newbie Web
Automation update .