Browser Framework - Procedures and Functions

Abs

This function returns the absolute value of integer "A".

Defined in: SystemUtilities

Function Abs(a : Integer): Integer;

AddNewRecord

Defined in: SystemActions

Procedure AddNewRecord(FormName : String);

BackPos

Returns the character index of the last occurrence of string S1inside string S2.

Defined in: SystemUtilities

Function BackPos(S1 : String; S2 : String): Integer;

BoolToStr

This function returns a string containing either true or false, accordingto the value of the boolean parameter.

Defined in: SystemUtilities

Function BoolToStr(b : Boolean): String;

Ceil

This function rounds "X" to higher of the two surrounding integer values.

Defined in: SystemUtilities

Function Ceil(X : Real): Integer;

ChangeColorBrightness

This function changes the intensities of the Red, Green and Blue componentsof the color passed as parameter, returning the new color.

Defined in: SystemUtilities

Function ChangeColorBrightness(Color : TColor; Delta : Integer): TColor;

CloseForm

Defined in: SystemActions

Procedure CloseForm(FormName : String);

ColorToHtmlHex

This function returns the HTML format string representation of a color.

Defined in: SystemUtilities

Function ColorToHtmlHex(Color : TColor): String;

CompareDate

This function compares two datetime values ignoring the Time component values.

Defined in: SystemUtilities

Function CompareDate(DT1 : TDateTime; DT2 : TDateTime): Integer;

CompareDateTime

This function compares two datetime values, downto to the millisecond. --\}

Defined in: SystemUtilities

Function CompareDateTime(DT1 : TDateTime; DT2 : TDateTime): Integer;

CompareTime

This function compares two datetime values ignoring the Date component values.

Defined in: SystemUtilities

Function CompareTime(DT1 : TDateTime; DT2 : TDateTime): Integer;

ConfirmAction

This function displays the message contained in parameter "Msg" and returnsthe user's reply to question in Boolean form.

Defined in: SystemUtilities

Function ConfirmAction(Msg : String): Boolean;

Copy

This function returns a string copied from string "S", starting at position"InX" and with "Count" characters in length.

Defined in: SystemUtilities

Function Copy(S : String; Inx : Integer; Count : Integer): String;

DateEqual

This function compares two dates, "D1" and "D2", returning a Boolean valueindicating if they are equal or not.

Defined in: SystemUtilities

Function DateEqual(D1 : TDateTime; D2 : TDateTime): Boolean;

DateTimeEqual

This function compares two timestamps, "D1" and "D2", returning a Booleanvalue indicating if they are equal or not.

Defined in: SystemUtilities

Function DateTimeEqual(D1 : TDateTime; D2 : TDateTime): Boolean;

DateTimeToString

This function converts a TDateTime format value to a stringrepresentation.

Valid values for TDateTimeFormat are:dfLong, dfMedium,dfShort, dfShortMMDDYYYY.

Valid values for TDateTimeMode are:eTimeStamp, eDate, eTime.

The ConvertToLocalTime parameter indicates whether the resulting stringshould contain the information in UTC or local time.

Defined in: SystemUtilities

Function DateTimeToString(DateTime : TDateTime;
                          Format : TDateTimeFormat;
                          Mode : TDateTimeMode;
                          ConvertToLocalTime : Boolean): String;

DateTimeToXML

Defined in: SystemUtilities

Function DateTimeToXML(dt : TDateTime): String;

DateToXML

Defined in: SystemUtilities

Function DateToXML(dt : TDateTime): String;

Day

This function returns the day part of Date, as an integer.

Defined in: SystemUtilities

Function Day(Date : TDateTime): Integer;

DayOfWeek

This function returns an integer indicating the weekday of theDateTime parameter.

Defined in: SystemUtilities

Function DayOfWeek(DateTime : TDateTime): Integer;

DaysOfMonth

This function returns the number of days in the moth part of the "Date"parameter.

Defined in: SystemUtilities

Function DaysOfMonth(Date : TDateTime): Word;

DebugOut

Sends the text of the "S" parameter to the IDE's Output window.

Defined in: SystemUtilities

Procedure DebugOut(S : String);

DecodeDate

This function breaks up a date into 3 integer values of year, month and day.

Defined in: SystemUtilities

Procedure DecodeDate(DT : TDateTime;
                     Var aYear : Integer;
                     Var aMonth : Integer;
                     Var aDay : Integer);

DecodeDateTime

This function breaks up a DateTime into 7 integer values of Year, Month,Day, Hour, minute, second and millisecond.

Defined in: SystemUtilities

Procedure DecodeDateTime(DT : TDateTime;
                         Var aYear : Integer;
                         Var aMonth : Integer;
                         Var aDay : Integer;
                         Var aHour : Integer;
                         Var aMinute : Integer;
                         Var aSecond : Integer;
                         Var aMillisecond : Integer);

DecodeTime

This function breaks up a Time into 4 integer values of Hour, minute, second and millisecond.

Defined in: SystemUtilities

Procedure DecodeTime(DT : TDateTime;
                     Var aHour : Integer;
                     Var aMinute : Integer;
                     Var aSecond : Integer;
                     Var aMillisecond : Integer);

Delete

This function deletes from string "S", "Count" characters,starting at position "InX".

Defined in: SystemUtilities

Procedure Delete(Var S : String; Inx : Integer; Count : Integer);

DeleteRecord

Defined in: SystemActions

Procedure DeleteRecord(FormName : String);

EncodeDate

This function returns a date in TDateTime format, from threeinteger values representing the Year, Month and Day, respectively.

Defined in: SystemUtilities

Function EncodeDate(Y : Integer; M : Integer; D : Integer): TDateTime;

EncodeDateTime

This function returns a Date and Time in TDateTime format, fromSeven integer values representing the Year, Month, Day, Hour, Minutes,Seconds and Milliseconds, respectively.

Defined in: SystemUtilities

Function EncodeDateTime(Y : Integer;
                        M : Integer;
                        D : Integer;
                        H : Integer;
                        Mt : Integer;
                        S : Integer;
                        Ms : Integer): TDateTime;

EncodeTime

This function returns a Time in TDateTime format, from fourinteger values representing the Hour, Minutes, Seconds and Milliseconds,respectively.

Defined in: SystemUtilities

Function EncodeTime(H : Integer; Mt : Integer; S : Integer; Ms : Integer): TDateTime;

Evaluate

Defined in: SystemClasses

Function Evaluate(Expression : String): String;

FilterApply

Defined in: SystemActions

Procedure FilterApply(FormName : String);

FilterDefine

Defined in: SystemActions

Procedure FilterDefine(FormName : String);

FilterRemove

Defined in: SystemActions

Procedure FilterRemove(FormName : String);

FloatToStr

This function returns a string containing the character representation ofa Double, according to the value of the parameter.

Defined in: SystemUtilities

Function FloatToStr(i : Double): String;

Floor

This function rounds "X" to lower of the two surrounding integer values.

Defined in: SystemUtilities

Function Floor(X : Real): Integer;

Format

Formats given string replacing each format item with the corresponding value.

\nExample:Format('\{0\} \{1\} is the second version of \{0\}', 'Morfik', 2) returns"Morfik 2 is the second version of Morfik"

Defined in: SystemUtilities

Function Format(Format : String; Arguments : MetaType): String;

FreeObjectList

This procedure traverses a TList object freeing all the objects it contains,prior to freeing the List itself.

Defined in: SystemUtilities

Procedure FreeObjectList(L : TList);

GetBValue

This function returns an integer value for the Blue component of the colorspecified as a parameter.

Defined in: SystemUtilities

Function GetBValue(Color : TColor): Byte;

GetElementAbsoluteLeft

This function returns the absolute left position of DOM Element.

Defined in: SystemUtilities

Function GetElementAbsoluteLeft(Element : THTML_ElementExt): Integer;

GetElementAbsoluteTop

This function returns the absolute top position of DOM Element.

Defined in: SystemUtilities

Function GetElementAbsoluteTop(Element : THTML_ElementExt): Integer;

GetGValue

This function returns an integer value for the Green component of the colorspecified as a parameter.

Defined in: SystemUtilities

Function GetGValue(Color : TColor): Byte;

GetMonthStr

This function returns a string containing the month name corresponding tomonth "M". Weather to use long or short names is defined by the "Format"parameter of type TDateTimeFormat.

Valid values for TDateTimeFormat are:dfLong, dfMedium,dfShort, dfShortMMDDYYYY.

Defined in: SystemUtilities

Function GetMonthStr(M : Integer; Format : TDateTimeFormat): String;

GetRValue

This function returns an integer value for the Red component of the colorspecified as a parameter.

Defined in: SystemUtilities

Function GetRValue(Color : TColor): Byte;

GetTimeZoneOffset

This function returns the "Offset" of the current time zone inrelation to GMT.

Defined in: SystemUtilities

Function GetTimeZoneOffset: Integer;

GetWeekDayStr

This function returns a string containing the weekday correspondingto day "D" in a week. Weather to use long or short names is defined bythe "Format" parameter of type TDateTimeFormat.

Valid values for TDateTimeFormat are:dfLong, dfMedium,dfShort, dfShortMMDDYYYY.

Defined in: SystemUtilities

Function GetWeekDayStr(D : Integer; Format : TDateTimeFormat): String;

Goto

Defined in: SystemClasses

Procedure Goto(Steps : Integer; Condition : Boolean);

GotoFirstPage

Defined in: SystemActions

Procedure GotoFirstPage(FormName : String);

GotoFirstRecord

Defined in: SystemActions

Procedure GotoFirstRecord(FormName : String);

GotoLastPage

Defined in: SystemActions

Procedure GotoLastPage(FormName : String);

GotoLastRecord

Defined in: SystemActions

Procedure GotoLastRecord(FormName : String);

GotoNextPage

Defined in: SystemActions

Procedure GotoNextPage(FormName : String);

GotoNextRecord

Defined in: SystemActions

Procedure GotoNextRecord(FormName : String);

GotoPreviousPage

Defined in: SystemActions

Procedure GotoPreviousPage(FormName : String);

GotoPreviousRecord

Defined in: SystemActions

Procedure GotoPreviousRecord(FormName : String);

HexToInt

This function returns an integer, obtained from its string representationin Hexadecimal format.

Defined in: SystemUtilities

Function HexToInt(Hex : String): Integer;

HighLightControl

Defined in: SystemActions

Procedure HighLightControl(FormName : String;
                           ControlName : String;
                           HighLight : Boolean);

Hour

This function returns the hour part of Time, as an integer.

Defined in: SystemUtilities

Function Hour(Time : TDateTime): Integer;

HtmlHexToColor

This function returns a color(TColor type) from three values for colorsRed, Green and Blue, specified in the Hexadecimal string format used in HTML.

Defined in: SystemUtilities

Function HtmlHexToColor(Color : String): TColor;

InputText

This function displays a modal dialog box requesting that the user inputa string. Parameter "Msg" is a message to be displayed to the user andparameter "DefaultValue" is a default value for the string.

Defined in: SystemUtilities

Function InputText(Msg : String; DefaultValue : String): String;

Insert

Inserts a given substring at a specified position into another string

Defined in: SystemUtilities

Procedure Insert(Source : String; Var S : String; Index : Integer);

Inspect

This function lists all properties (name=value) for a given Obj. Depending onthe value of the IncludeMethods parameter, it also lists all the methods of theobject.

Defined in: SystemUtilities

Function Inspect(Obj : MetaType; IncludeMethods : Boolean): String;

IntToHex

This function returns a string containing the character representation,in Hexadecimal format of an integer, according to the value of theparameter.

Defined in: SystemUtilities

Function IntToHex(n : Integer): String;

IntToStr

This function returns a string containing the character representation ofan integer, according to the value of the parameter.

Defined in: SystemUtilities

Function IntToStr(i : Integer): String;

JPos

This function returns the character index of the first occurrence ofstring "S1" inside string "S2", after position "StartInX".

Defined in: SystemUtilities

Function JPos(S1 : String; S2 : String; StartInx : Integer): Integer;

LocalDateTimeToUTC

This function converts the DateTime parameter to Coordinated UniversalTime(UTC).

Defined in: SystemUtilities

Function LocalDateTimeToUTC(DateTime : TDateTime): TDateTime;

LowerCase

This function converts string "S" to all lower case letters.

Defined in: SystemUtilities

Function LowerCase(S : String): String;

Max

This function will return the largest of the two values, "A" and "B",it receives as parameters.

Defined in: SystemUtilities

Function Max(a : Integer; b : Integer): Integer;

MilliSecond

This function returns the milliseconds part of Time, as an integer.

Defined in: SystemUtilities

Function MilliSecond(Time : TDateTime): Integer;

Min

This function will return the smallest of the two values, "A" and "B",it receives as parameters.

Defined in: SystemUtilities

Function Min(a : Integer; b : Integer): Integer;

Minute

This function returns the minutes part of Time, as an integer.

Defined in: SystemUtilities

Function Minute(Time : TDateTime): Integer;

ModifyParameter

This function modifies the value of a specific parameter, within a stringcontaining several parameters. The function returns true if the requestedparameter was found within the "Parameters" string.

Defined in: SystemUtilities

Function ModifyParameter(Var Parameters : String; Name : String; Value : String): Boolean;

Month

This function returns the month part of Date, as an integer.

Defined in: SystemUtilities

Function Month(Date : TDateTime): Integer;

NameToColor

This function returns a color(TColor type) from the string name of a color.

This only applies with Morfik pre-defined colors.

Defined in: SystemUtilities

Function NameToColor(Name : String): TColor;

NextMonth

This function returns the next month in sequence to the one inthe Date parameter. If the date is in December, January of the followingyear will be returned.

Defined in: SystemUtilities

Function NextMonth(Date : TDateTime): TDateTime;

NextYear

This function returns the next year in sequence to the one inthe Date parameter.

Defined in: SystemUtilities

Function NextYear(Date : TDateTime): TDateTime;

Now

This function returns the current time.

Defined in: SystemUtilities

Function Now: TDateTime;

OpenDataForm

Defined in: SystemActions

Procedure OpenDataForm(Target : String; Parameters : String);

OpenForm

Defined in: SystemActions

Procedure OpenForm(FormName : String; Target : String; Parameters : String);

OpenPage

Defined in: SystemActions

Procedure OpenPage(PageName : String; PageParams : String);

OpenReport

Defined in: SystemActions

Procedure OpenReport(ReportName : String; Parameters : String);

OpenWebSite

Defined in: SystemActions

Procedure OpenWebSite(SiteURL : String);

OpenWindow

Defined in: SystemActions

Procedure OpenWindow(FormName : String; Parameters : String);

Pos

Returns the character index of the first occurrence of string S1inside string S2.

Defined in: SystemUtilities

Function Pos(S1 : String; S2 : String): Integer;

PreviousYear

This function returns the previous year in sequence to the one inthe Date parameter.

Defined in: SystemUtilities

Function PreviousYear(Date : TDateTime): TDateTime;

PrevMonth

This function returns the previous month to the one in the Date parameter.

If the date is in January, December of the previous year will be returned.

Defined in: SystemUtilities

Function PrevMonth(Date : TDateTime): TDateTime;

Random

This function is generates a random integer value. Parameter "X" indicatesthe highest value the random number can assume.

Defined in: SystemUtilities

Function Random(X : Integer): Integer;

RefreshPage

Defined in: SystemActions

Procedure RefreshPage(FormName : String);

ReplaceString

This function returns a string where occurrences of "FromStr" are replacedwith "ToStr" in the string parameter "S".

Defined in: SystemUtilities

Function ReplaceString(S : String; FromStr : String; ToStr : String): String;

RequestForm

Defined in: SystemActions

Procedure RequestForm(FormName : String; Target : String; Parameters : String);

RequestWindow

Defined in: SystemActions

Procedure RequestWindow(FormName : String; Parameters : String);

ResetTimers

This function resets all the timers being currently recorded for profilingan application.

Defined in: SystemUtilities

Procedure ResetTimers;

ResumeThread

Defined in: SystemClasses

Procedure ResumeThread(ThreadID : Integer);

RGB

This function returns a color(TColor type) from three values for colorsRed, Green and Blue.

Defined in: SystemUtilities

Function RGB(R : Byte; G : Byte; B : Byte): TColor;

Round

This function rounds "X" to nearest of the two surrounding integer values.

Defined in: SystemUtilities

Function Round(X : Real): Integer;

RunWebMethod

Defined in: SystemActions

Procedure RunWebMethod(WebMethodName : String; Parameters : String);

Second

This function returns the seconds part of Time, as an integer.

Defined in: SystemUtilities

Function Second(Time : TDateTime): Integer;

ShowControl

Defined in: SystemActions

Procedure ShowControl(FormName : String; ControlName : String; Show : Boolean);

ShowMessage

This function displays the parameter string in a modal dialog box.

Defined in: SystemUtilities

Procedure ShowMessage(Message : MetaType);

StringsEqual

This function compares, in case insensitive manner, two strings returningtrue if there is a match and false, otherwise.

Defined in: SystemUtilities

Function StringsEqual(S1 : String; S2 : String): Boolean;

StringToDateTime

This function converts a string representation of a date and time intoa TDateTime format value.

Valid values for TDateTimeFormat are:dfLong, dfMedium,dfShort, dfShortMMDDYYYY.

Valid values for TDateTimeMode are:eTimeStamp, eDate, eTime.

The ConvertToUTCTime parameter indicates whether the resulting stringshould contain the information in UTC or local time.

Defined in: SystemUtilities

Function StringToDateTime(S : String;
                          Format : TDateTimeFormat;
                          Mode : TDateTimeMode;
                          ConvertToUTCTime : Boolean): TDateTime;

StrToBool

This function returns a Boolean value according to the contents of thestring parameter.

Defined in: SystemUtilities

Function StrToBool(S : String): Boolean;

StrToFloat

This function returns a Double, obtained from its string representation.

Defined in: SystemUtilities

Function StrToFloat(S : String): Double;

StrToInt

This function returns an integer, obtained from its string representation.

Defined in: SystemUtilities

Function StrToInt(S : String): Integer;

StrToXMLDocument

This function converts XML string to a DOM document.

Defined in: SystemUtilities

Function StrToXMLDocument(XMLString : String): TDOM_Document;

SubmitPage

Defined in: SystemActions

Procedure SubmitPage(FormName : String);

SuspendThread

Defined in: SystemClasses

Procedure SuspendThread;

TimeEqual

This function compares two times, "T1" and "T2", returning a Boolean valueindicating if they are equal or not.

Defined in: SystemUtilities

Function TimeEqual(T1 : TDateTime; T2 : TDateTime): Boolean;

TimeToXML

Defined in: SystemUtilities

Function TimeToXML(dt : TDateTime): String;

UpperCase

This function converts string "S" to all upper case letters.

Defined in: SystemUtilities

Function UpperCase(S : String): String;

UTCDateTimeToLocal

This function converts the DateTime parameter from Coordinated UniversalTime(UTC) to local time.

Defined in: SystemUtilities

Function UTCDateTimeToLocal(DateTime : TDateTime): TDateTime;

UTCNow

This function returns the current time.

Defined in: SystemUtilities

Function UTCNow: TDateTime;

ValidateDate

This function checks the date components of the "Date" parameter tomake sure that they are consistent.

Defined in: SystemUtilities

Function ValidateDate(Date : TDateTime): Boolean;

ValidateDateTime

This function checks both the date and time components of the "Date"parameter to make sure that they are consistent.

Defined in: SystemUtilities

Function ValidateDateTime(Date : TDateTime): Boolean;

ValidateTime

This function checks the time components of the "Date" parameter to makesure that they are consistent.

Defined in: SystemUtilities

Function ValidateTime(Date : TDateTime): Boolean;

XMLToDate

Defined in: SystemUtilities

Function XMLToDate(xml : String): TDateTime;

XMLToDateTime

Defined in: SystemUtilities

Function XMLToDateTime(xml : String): TDateTime;

XMLToTime

Defined in: SystemUtilities

Function XMLToTime(xml : String): TDateTime;

Year

This function returns the year part of Date, as an integer.

Defined in: SystemUtilities

Function Year(Date : TDateTime): Integer;


Related Topics


Back to top