Browser Framework - Helper Methods

Boolean.FromString

Tries to convert the given string aString to the equivalent Boolean value.

If aString does not contain a valid Boolean value, FromString raises an exception.

Defined in: SystemHelperMethods

Function Boolean.FromString(Const aString : String): Boolean;

Boolean.ToString

Returns a string representation of the Boolean value

Defined in: SystemHelperMethods

Function Boolean.ToString: String;

Boolean.TryParse

Tries to convert the given string aString to the equivalentBoolean value.

If the conversion is successful, TryParse returns true and aResult willcontain the converted value.

On any conversion error, TryParse returns false and aResult remains same.

Defined in: SystemHelperMethods

Function Boolean.TryParse(Const aString : String; Var aResult : Boolean): Boolean;

Char.Alpha

Indicates whether the character is a digit character.

Defined in: SystemHelperMethods

Function Char.Alpha: Boolean;

Char.AscCode

Returns an Integer value representing the character code corresponding to a character

Defined in: SystemHelperMethods

Function Char.AscCode: Integer;

Char.CompareTo

Performs a comparison between the character (Self)and another character (aChar).

Defined in: SystemHelperMethods

Function Char.CompareTo(aChar : Char): Integer;

Char.Equals

Compares the character (Self) with another character (aChar) tocheck for equality.

Defined in: SystemHelperMethods

Function Char.Equals(aChar : Char): Boolean;

Char.GetHashCode

Returns a Hash code. For the Char type the hash code isequal to the actual value of the char variable.

Defined in: SystemHelperMethods

Function Char.GetHashCode: Integer;

Char.IsAlpha

Returns true if character is within ranges A - Z or a - z

Defined in: SystemHelperMethods

Function Char.IsAlpha: Boolean;

Char.IsAlphaNum

Returns true if character is within ranges A - Z, a - z, or 0 - 9

Defined in: SystemHelperMethods

Function Char.IsAlphaNum: Boolean;

Char.IsDigit

Indicates whether the character is a digit character.

Defined in: SystemHelperMethods

Function Char.IsDigit: Boolean;

Char.IsLower

Indicates whether the character is a lowercase character.

Defined in: SystemHelperMethods

Function Char.IsLower: Boolean;

Char.IsUpper

Indicates whether the character is an uppercase character.

Defined in: SystemHelperMethods

Function Char.IsUpper: Boolean;

Char.IsWhiteSpace

Indicates whether the character is a white space character.

Defined in: SystemHelperMethods

Function Char.IsWhiteSpace: Boolean;

Char.ToLower

Returns the lowercase version of the character (aChar).

Defined in: SystemHelperMethods

Function Char.ToLower(aChar : Char): Char;

Char.ToUpper

Returns the uppercase version of the character (aChar).

Defined in: SystemHelperMethods

Function Char.ToUpper(aChar : Char): Char;

Double.FromString

Tries to convert the given string aString to a double value.

If aString does not contain a valid double value, FromString raises an exception.

Defined in: SystemHelperMethods

Function Double.FromString(Const aString : String): Double;

Double.IsInfinity

Checks whether the floating-point value represents positive ornegative infinity.

Defined in: SystemHelperMethods

Function Double.IsInfinity: Boolean;

Double.IsNegativeInfinity

Checks if the floating-point value represents negative infinity.

Defined in: SystemHelperMethods

Function Double.IsNegativeInfinity: Boolean;

Double.IsPositiveInfinity

Checks if a floating-point value (aValue) represents positive infinity.

Defined in: SystemHelperMethods

Function Double.IsPositiveInfinity: Boolean;

Double.ToFixed

Formats a number using fixed-point notation.

Defined in: SystemHelperMethods

Function Double.ToFixed(Digits : Integer): String;

Double.ToPrecision

Returns a string representing the Number object to the specified precision.

Defined in: SystemHelperMethods

Function Double.ToPrecision(Digits : Integer): String;

Double.ToString

Returns a string representation of a floating point value.

Defined in: SystemHelperMethods

Function Double.ToString: String;

Double.TryParse

Tries to convert the given string aString to a double value.

If the conversion is successful, TryParse returns true and aResult willcontain the converted value.

On any conversion error, TryParse returns false and aResult remains same.

Defined in: SystemHelperMethods

Function Double.TryParse(Const aString : String; Var aResult : Double): Boolean;

Integer.FromString

Tries to convert the given string aString to the equivalent Integer value.

If aString does not contain a valid Integer value, FromString raises an exception.

**Note that this method behaves more fault tolerant than the server-side version.

ie. Integer.FromString('123xyz') will return 123 gracefully ignoring the "xyz" part.

On the other hand the same call on server-side will raise an exception.

Defined in: SystemHelperMethods

Function Integer.FromString(Const aString : String): Integer;

Integer.GetHashCode

Returns a Hash code. For the Integer type the hash code isequal to the actual value of the integer variable.

Defined in: SystemHelperMethods

Function Integer.GetHashCode: Integer;

Integer.ToChar

Returns the character associated with the specified character code

Defined in: SystemHelperMethods

Function Integer.ToChar: Char;

integer.ToHexString

Returns a string representation of the integer in hexadecimalformat.

Defined in: SystemHelperMethods

Function integer.ToHexString: String;

Integer.ToString

Returns the string representation of the integer.

Defined in: SystemHelperMethods

Function Integer.ToString: String;

Integer.TryParse

Tries to convert the given string aString to the equivalentInteger value.

If the conversion is successful, TryParse returns true and aResult willcontain the converted value. On any conversion error, TryParse returns falseand aResult remains same.

**Note that this method behaves more fault tolerant than the server-side version.

ie. Integer.TryParse('123xyz', i) will return true and set the passed variable ito 123 gracefully ignoring the "xyz" part.

On the other hand the same call on server-side will return false.

Defined in: SystemHelperMethods

Function Integer.TryParse(Const aString : String; Var aResult : Integer): Boolean;

Longint.FromString

Tries to convert the given string aString to the equivalent Longint value.

If aString does not contain a valid Longint value, FromString raises an exception.

**Note that this method behaves more fault tolerant than the server-side version.

ie. Longint.FromString('123xyz') will return 123 gracefully ignoring the "xyz" part.

On the other hand the same call on server-side will raise an exception.

Defined in: SystemHelperMethods

Function Longint.FromString(Const aString : String): Longint;

Longint.GetHashCode

Returns a Hash code. For the Longint type the hash code isequal to the actual value of the Longint variable.

Defined in: SystemHelperMethods

Function Longint.GetHashCode: Integer;

Longint.ToChar

Returns the character associated with the specified character code

Defined in: SystemHelperMethods

Function Longint.ToChar: Char;

Longint.ToHexString

Returns a string representation of the longint in hexadecimalformat.

Defined in: SystemHelperMethods

Function Longint.ToHexString: String;

Longint.ToString

Returns the string representation of the Longint.

Defined in: SystemHelperMethods

Function Longint.ToString: String;

Longint.TryParse

Tries to convert the given string aString to the equivalentLongint value.

If the conversion is successful, TryParse returns true and aResult willcontain the converted value. On any conversion error, TryParse returns falseand aResult remains same.

**Note that this method behaves more fault tolerant than the server-side version.

ie. Longint.TryParse('123xyz', i) will return true and set the passed variable ito 123 gracefully ignoring the "xyz" part.

On the other hand the same call on server-side will return false.

Defined in: SystemHelperMethods

Function Longint.TryParse(Const aString : String; Var aResult : Longint): Boolean;

pointer.ToHexString

Returns a string representation of the pointer in hexadecimalformat.

Defined in: SystemHelperMethods

Function pointer.ToHexString: String;

String.CharAt

Returns the character at aIndex. Effectively equivalent of expression "myString[aIndex]".

Defined in: SystemHelperMethods

Function String.CharAt(aIndex : Integer): Char;

String.Clear

Clears the contents of the string making it equal to anempty String ().

Defined in: SystemHelperMethods

Procedure String.Clear;

String.Compare

This type method performs a case insensitive comparison of two strings.

Defined in: SystemHelperMethods

Function String.Compare(StrA : String;
                        StrB : String;
                        StringComparison : TStringComparison): Integer;

String.Compare

This type method performs a case insensitive comparison of two strings.

Defined in: SystemHelperMethods

Function String.Compare(StrA : String; StrB : String): Integer;

String.CompareTo

Performs a case insensitive comparison between the String (Self)and another string (aString).

Defined in: SystemHelperMethods

Function String.CompareTo(aString : String; StringComparison : TStringComparison): Integer;

String.CompareTo

Performs a case insensitive comparison between the String (Self)and another string (aString).

Defined in: SystemHelperMethods

Function String.CompareTo(aString : String): Integer;

String.Delete

Deletes Count characters from the String, starting atposition StartIndex and returns the resulting string.

Defined in: SystemHelperMethods

Function String.Delete(aStartIndex : Integer; aCount : Integer): String;

String.EndsWith

Returns the true if the string (self) starts with thecharacters contained in another string (aString). This comparison iscase insensitive.

Defined in: SystemHelperMethods

Function String.EndsWith(aString : String; StringComparison : TStringComparison): Boolean;

String.EndsWith

Returns the true if the string (self) starts with thecharacters contained in another string (aString). This comparison iscase insensitive.

Defined in: SystemHelperMethods

Function String.EndsWith(aString : String): Boolean;

String.Equals

Performs a case insensitive comparison of the string (self) withanother string (aString), returning true if the strings match.

Defined in: SystemHelperMethods

Function String.Equals(aString : String): Boolean;

String.EscapeRE

Returns aString with regular expression meta charactersescaped with a backslash.

Defined in: SystemHelperMethods

Function String.EscapeRE(Const aString : String): String;

String.FromInteger

Returns the string representation of the given integer "aValue".

Defined in: SystemHelperMethods

Function String.FromInteger(aValue : Integer): String;

String.GetHashCode

Returns a Hash code for the string.

Defined in: SystemHelperMethods

Function String.GetHashCode: Integer;

String.IndexOf

Returns the first position of a substring within the string.

Defined in: SystemHelperMethods

Function String.IndexOf(aString : String; FromIndex : Integer): Integer;

String.IndexOf

Returns the first position of a substring within the string.

Defined in: SystemHelperMethods

Function String.IndexOf(aString : String): Integer;

String.Insert

Inserts aString into the string at position aStartIndex.

Defined in: SystemHelperMethods

Function String.Insert(aStartIndex : Integer; aString : String): String;

String.IsAlpha

Returns true if all characters of the string (Self) are within ranges A - Z or a - z

Defined in: SystemHelperMethods

Function String.IsAlpha: Boolean;

String.IsAlphaNum

Returns true if all characters of the string (Self) are within ranges A - Z, a - z, or 0 - 9

Defined in: SystemHelperMethods

Function String.IsAlphaNum: Boolean;

String.IsEmpty

Returns true if the string (Self) contains no characters.

Defined in: SystemHelperMethods

Function String.IsEmpty: Boolean;

String.IsValidEmail

Returns true if the string (Self) contains a valid e-mail address.

Defined in: SystemHelperMethods

Function String.IsValidEmail: Boolean;

String.LastIndexOf

Returns the last position of a substring within the string.

Defined in: SystemHelperMethods

Function String.LastIndexOf(aString : String; FromIndex : Integer): Integer;

String.LastIndexOf

Returns the last position of a substring within the string.

Defined in: SystemHelperMethods

Function String.LastIndexOf(aString : String): Integer;

String.Length

Returns the number of characters in the string.

Defined in: SystemHelperMethods

Function String.Length: Integer;

String.Match

Splits the string based on the Separator argument.

Defined in: SystemHelperMethods

Function String.Match(Patern : TRegExp): TArray;

String.PadLeft

Returns a new string of a specified length in which the beginning of the string is padded with spaces or a specified character.

Defined in: SystemHelperMethods

Function String.PadLeft(TotalLength : Integer; PaddingChar : Char): String;

String.PadRight

Left-aligns the characters in this string, padding on the right with a specified character, for a specified total length

Defined in: SystemHelperMethods

Function String.PadRight(TotalLength : Integer; PaddingChar : Char): String;

String.Quote

Returns a copy of the string enclosed in double quotes.

Defined in: SystemHelperMethods

Function String.Quote: String;

String.Split

Splits the string based on the Separator argument.

Defined in: SystemHelperMethods

Function String.Split(separator : String): TArray;

String.StartsWith

Returns the true if the string (self) starts with thecharacters contained in another string (aString). This comparison iscase insensitive.

Defined in: SystemHelperMethods

Function String.StartsWith(aString : String; StringComparison : TStringComparison): Boolean;

String.StartsWith

Returns the true if the string (self) starts with thecharacters contained in another string (aString). This comparison iscase insensitive.

Defined in: SystemHelperMethods

Function String.StartsWith(aString : String): Boolean;

String.SubString

Returns the substring of the string (self) which contains aLenthcharacters starting from position aStartIndex. If aLength is greater thanSelf.Length it will be considered to be equal to Self.Length.

Defined in: SystemHelperMethods

Function String.SubString(aStartIndex : Integer; aLength : Integer): String;

String.ToBoolean

Converts the string to a Boolean.

Defined in: SystemHelperMethods

Function String.ToBoolean: Boolean;

String.ToFloat

Converts the string to a double. If the string contents arenot compatible with an integer, an exception is raised.

Defined in: SystemHelperMethods

Function String.ToFloat: Double;

String.ToInteger

Converts the string to an integer. If the string contents arenot compatible with an integer, an exception is raised.

Defined in: SystemHelperMethods

Function String.ToInteger: Integer;

String.ToLower

Returns an all lower case version of the string (self).

Defined in: SystemHelperMethods

Function String.ToLower: String;

String.ToUpper

Returns an all upper case version of the string (self).

Defined in: SystemHelperMethods

Function String.ToUpper: String;

String.Trim

Returns the caller string (Self) with leading and trailing white spacecharacters removed.

Note that caller is not modified in this operation.

Defined in: SystemHelperMethods

Function String.Trim: String;

String.TrimEnd

Returns the caller string (Self) with trailing white spacecharacters removed.

Note that caller is not modified in this operation.

Defined in: SystemHelperMethods

Function String.TrimEnd: String;

String.TrimStart

Returns the caller string (Self) with leading white spacecharacters removed.

Note that caller is not modified in this operation.

Defined in: SystemHelperMethods

Function String.TrimStart: String;

String.UnQuote

Returns a copy of the string removing double quotes from thestart and end positions.

Defined in: SystemHelperMethods

Function String.UnQuote: String;

TJDate.AddDay

This methods adds as many as "ANumberOfDays" days to the current TDateTimeinstance and returns the resulting TDateTime value. The parameter can benegative or positive.

Defined in: SystemHelperMethods

Function TJDate.AddDay(aNumberOfDays : Integer): TDateTime;

TJDate.AddHours

This methods adds as many as "aNumberOfHours" hours to the current TDateTimeinstance and returns the resulting TDateTime value. The parameter can benegative or positive.

Defined in: SystemHelperMethods

Function TJDate.AddHours(aNumberOfHours : Integer): TDateTime;

TJDate.AddMilliSeconds

This methods adds as many as "aNumberOfMilliseconds" milliseconds to thecurrent TDateTime instance and returns the resulting TDateTime value. The parameter can benegative or positive.

Defined in: SystemHelperMethods

Function TJDate.AddMilliSeconds(aNumberOfMilliseconds : Integer): TDateTime;

TJDate.AddMinutes

This methods adds as many as "aNumberOfMinutes" minutes to the current TDateTimeinstance and returns the resulting TDateTime value. The parameter can benegative or positive.

Defined in: SystemHelperMethods

Function TJDate.AddMinutes(aNumberOfMinutes : Integer): TDateTime;

TJDate.AddMonths

This methods adds as many as "aNumberOfMonths" months to the current TDateTimeinstance and returns the resulting TDateTime value. The parameter can benegative or positive.

Defined in: SystemHelperMethods

Function TJDate.AddMonths(aNumberOfMonths : Integer): TDateTime;

TJDate.AddSeconds

This methods adds as many as "aNumberOfSeconds" seconds to the current TDateTimeinstance and returns the resulting TDateTime value. The parameter can benegative or positive.

Defined in: SystemHelperMethods

Function TJDate.AddSeconds(aNumberOfSeconds : Integer): TDateTime;

TJDate.AddYears

This methods adds as many as "aNumberOfYears" years to the current TDateTimeinstance and returns the resulting TDateTime value. The parameter can benegative or positive.

Defined in: SystemHelperMethods

Function TJDate.AddYears(aNumberOfYears : Integer): TDateTime;

TJDate.CompareTo

Compares the value of this instance and aValue.

Defined in: SystemHelperMethods

Function TJDate.CompareTo(aValue : TDateTime): Integer;

TJDate.Day

Returns the day of the month.

Defined in: SystemHelperMethods

Function TJDate.Day: Integer;

TJDate.DayOfTheWeek

Returns which day of the week the TDatetime value (aDate)represents (1=Monday, 7=Sunday).

Defined in: SystemHelperMethods

Function TJDate.DayOfTheWeek(aDate : TDateTime): Integer;

TJDate.DayOfTheYear

Returns which day of the year the TDatetime value (aDate)represents (1-366).

Defined in: SystemHelperMethods

Function TJDate.DayOfTheYear(aDate : TDateTime): Integer;

TJDate.DaysInMonth

This method will return the number of days in the given month "aMonth" ofyear "aYear".

Defined in: SystemHelperMethods

Function TJDate.DaysInMonth(aYear : Integer; aMonth : Integer): Integer;

TJDate.EncodeDate

Returns a new TDateTime object with the specified parameters.

Defined in: SystemHelperMethods

Function TJDate.EncodeDate(aYear : Integer; aMonth : Integer; aDay : Integer): TDateTime;

TJDate.EncodeDateTime

Returns a new TDateTime object with the specified parameters.

Defined in: SystemHelperMethods

Function TJDate.EncodeDateTime(aYear : Integer;
                               aMonth : Integer;
                               aDay : Integer;
                               aHour : Integer;
                               aMinute : Integer;
                               aSecond : Integer;
                               aMillisecond : Integer): TDateTime;

TJDate.EncodeTime

Returns a new TDateTime object with the specified parameters.

Defined in: SystemHelperMethods

Function TJDate.EncodeTime(aHour : Integer;
                           aMinute : Integer;
                           aSecond : Integer;
                           aMillisecond : Integer): TDateTime;

TJDate.FromString

Converts the given string (aString) into a TDateTime value.

Defined in: SystemHelperMethods

Function TJDate.FromString(Const aString : String): TDateTime;

TJDate.FromString

Converts the given string (aString) into a TDateTime value.

Defined in: SystemHelperMethods

Function TJDate.FromString(Const aString : String; ConvertToUTCTime : Boolean): TDateTime;

TJDate.FromString

Converts the given string (aString) into a TDateTime value.

Defined in: SystemHelperMethods

Function TJDate.FromString(Const aString : String;
                           Const Format : TDateTimeFormat;
                           Mode : TDateTimeMode;
                           ConvertToUTCTime : Boolean): TDateTime;

TJDate.Hour

Returns the hour portion of the DateTime value.

Defined in: SystemHelperMethods

Function TJDate.Hour: Integer;

TJDate.IsLeapYear

Checks if the year specified by "aYear" is a leap year.

Defined in: SystemHelperMethods

Function TJDate.IsLeapYear(aYear : Integer): Boolean;

TJDate.Millisecond

Returns the millisecond portion of the DateTime value.

Defined in: SystemHelperMethods

Function TJDate.Millisecond: Integer;

TJDate.Minute

Returns the minute portion of the TDateTime value.

Defined in: SystemHelperMethods

Function TJDate.Minute: Integer;

TJDate.Month

Returns the month portion of the DateTime value (0-11).

Defined in: SystemHelperMethods

Function TJDate.Month: Integer;

TJDate.Second

Returns the second portion of the DateTime value.

Defined in: SystemHelperMethods

Function TJDate.Second: Integer;

TJDate.TryParse

Converts the given string (aString) into a TDateTime value.

Defined in: SystemHelperMethods

Function TJDate.TryParse(aString : String;
                         Var aResult : TDateTime;
                         Const Format : TDateTimeFormat;
                         Mode : TDateTimeMode;
                         ConvertToUTCTime : Boolean): Boolean;

TJDate.Year

Returns the year portion of the DateTime value.

Defined in: SystemHelperMethods

Function TJDate.Year: Integer;

TStringList.FromString

Looks for aSeparator and breaks down the given string aStringbased on its position. Separators are removed and string is broken down into aTStringList.

Defined in: SystemHelperMethods

Function TStringList.FromString(Const aString : String): TStringList;

TStringList.FromString

Looks for aSeparator and breaks down the given string aStringbased on its position. Separators are removed and string is broken down into aTStringList.

Defined in: SystemHelperMethods

Function TStringList.FromString(Const aString : String; aSeparator : Char): TStringList;

TStringList.ToString

Returns all elements of the string list concatenated into asingle string. Line breaks "/n" are inserted between each of the stringswhich are listed in the TStringList.

Defined in: SystemHelperMethods

Function TStringList.ToString(aSeparator : String): String;

TStringList.ToString

Returns all elements of the string list concatenated into asingle string. Line breaks "/n" are inserted between each of the stringswhich are listed in the TStringList.

Defined in: SystemHelperMethods

Function TStringList.ToString: String;


Related Topics


Back to top