Quick start manual
8-10
Delphi Language Guide
Other standard routines
For information on format strings, see “Format strings” in the online Help.
StrToCurr Converts a string to a currency value.
StrToDate Converts a string to a date format (TDateTime).
StrToDateTime Converts a string to a TDateTime.
StrToFloat Converts a string to a floating-point value.
StrToInt Converts a string to an integer.
StrToTime Converts a string to a time format (TDateTime).
StrUpper Returns an ASCII string in upper case.
Succ Returns the successor of an ordinal value.
Sum Returns the sum of the elements from an array.
Time Returns the current time.
TimeToStr Converts a variable of type TDateTime to a string.
Trunc Truncates a real number to an integer.
UniqueString Ensures that a string has only one reference. (The string may be copied to
produce a single reference.)
UpCase Converts a character to uppercase.
UpperCase Returns a string in uppercase.
VarArrayCreate Creates a variant array.
VarArrayDimCount Returns number of dimensions of a variant array.
VarArrayHighBound Returns high bound for a dimension in a variant array.
VarArrayLock Locks a variant array and returns a pointer to the data.
VarArrayLowBound Returns the low bound of a dimension in a variant array.
VarArrayOf Creates and fills a one-dimensional variant array.
VarArrayRedim Resizes a variant array.
VarArrayRef Returns a reference to the passed variant array.
VarArrayUnlock Unlocks a variant array.
VarAsType Converts a variant to specified type.
VarCast Converts a variant to a specified type, storing the result in a variable.
VarClear Clears a variant.
VarCopy Copies a variant.
VarToStr Converts variant to string.
VarType Returns type code of specified variant.
Table 8.3 Other standard routines (continued)
Procedure or
function Description