MYOB Exo Clarity

Hide NavigationShow Navigation

  • Contents
  • Index
  • Search
 
Display results with all search words

 

Conversion Functions

BooleanToChar

Converts a boolean value to a string.

Declaration: function BooleanToChar(S: Boolean): String;

CharToBoolean

Converts a string to a boolean value.

Declaration: function BooleanToChar(S: String): Boolean;

Chr

Returns the character with the ordinal value (ASCII value) of the byte-type expression X.

Declaration: function Chr(X: Byte): Char;

CurrToStr

Formats a currency value as string.

Declaration: function CurrToStr(Value: Currency): String;

DateTimeToStr

Converts a Datetime value to string.

Declaration: function DateTimeToStr(aDateTime: DateTime) : String;

DateToStr

Converts a Date value to string.

Declaration: function DateToStr(aDate: Date): String;

FloatToStr

Converts a floating point value to string.

Declaration: FloatToStr(Value: Extended): String;

IntToStr

Converts an integer to a string.

Declaration: function IntToStr(Value: Integer): String;

Ord

Returns the ASCII value of a character.

Declaration: function Ord(X: Char): Integer;

RGB

Returns a red, green, blue (RGB) color based on the arguments supplied. The intensity for each argument is in the range 0 through 255. If all three intensities are zero, the result is black. If all three intensities are 255, the result is white.

Declaration: function RGB(bRed, bGreen, bBlue: Integer): Integer;

StrToCurr

Converts a string to a currency value.

Declaration: function StrToCurr(const S: String): Currency;

StrToDate

Converts a string to a date value.

Declaration: function StrToDate(const S: String): Date;

StrToDateTime

Converts a string to Datetime value.

Declaration: function StrToDateTime(const S: String): DateTime;

StrToFloat

Converts a given string to a floating point value.

Declaration: StrToFloa (const S: String): Extended;

StrToInt

Converts a string that represents an integer (decimal or hex notation) to a number.

Declaration: function StrToInt(const S: String): Integer;

StrToIntDef

Converts a string that represents an integer (decimal or hex notation) to a number. If S does not represent a valid number, StrToIntDef returns the number passed in Default.

Declaration: function StrToIntDef(const S: String; Default: Integer) : Integer;

StrToTime

Converts a string to time value.

Declaration: function StrToTime(const S: String): Time;

TimeToStr

Returns a string that represents a DateTime value.

Declaration: TimeToStr(aTime: Time): String;