Codeunit 18122332 EOS004 Convert

Codeunit 18122332 EOS004 Convert

Methods

ToInteger

procedure ToInteger(value: text): Integer

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • Returns Integer

    The converted value


ToInteger

procedure ToInteger(value: text; WithError: Boolean) return: Integer

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • WithError Boolean

    true (default) throws error, false ignore errors

  • Returns Integer

    The converted value


ToDecimal

procedure ToDecimal(value: text): Decimal

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • Returns Decimal

    The converted value


ToDecimal

procedure ToDecimal(value: text; WithError: Boolean) return: Decimal

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • WithError Boolean

    true (default) throws error, false ignore errors

  • Returns Decimal

    The converted value


ToBigInteger

procedure ToBigInteger(value: text): BigInteger

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • Returns BigInteger

    The converted value


ToBigInteger

procedure ToBigInteger(value: text; WithError: Boolean) return: BigInteger

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • WithError Boolean

    true (default) throws error, false ignore errors

  • Returns BigInteger

    The converted value


ToBoolean

procedure ToBoolean(value: text): Boolean

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • Returns Boolean

    The converted value


ToBoolean

procedure ToBoolean(value: text; WithError: Boolean) return: Boolean

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • WithError Boolean

    true (default) throws error, false ignore errors

  • Returns Boolean

    The converted value


ToDate

procedure ToDate(value: text): Date

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • Returns Date

    The converted value


ToDate

procedure ToDate(value: text; WithError: Boolean) return: Date

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • WithError Boolean

    true (default) throws error, false ignore errors

  • Returns Date

    The converted value


ToDateTime

procedure ToDateTime(value: text): DateTime

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • Returns DateTime

    The converted value


ToDateTime

procedure ToDateTime(value: text; WithError: Boolean) return: DateTime

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • WithError Boolean

    true (default) throws error, false ignore errors

  • Returns DateTime

    The converted value


ToTime

procedure ToTime(value: text): Time

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • Returns Time

    The converted value


ToTime

procedure ToTime(value: text; WithError: Boolean) return: Time

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • WithError Boolean

    true (default) throws error, false ignore errors

  • Returns Time

    The converted value


ToGuid

procedure ToGuid(value: text): Guid

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • Returns Guid

    The converted value


ToGuid

procedure ToGuid(value: text; WithError: Boolean) return: Guid

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • WithError Boolean

    true (default) throws error, false ignore errors

  • Returns Guid

    The converted value


ToDuration

procedure ToDuration(value: text): Duration

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • Returns Duration

    The converted value


ToDuration

procedure ToDuration(value: text; WithError: Boolean) return: Duration

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • WithError Boolean

    true (default) throws error, false ignore errors

  • Returns Duration

    The converted value


ToRecordId

procedure ToRecordId(value: text): RecordId

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • Returns RecordId

    The converted value


ToRecordId

procedure ToRecordId(value: text; WithError: Boolean) return: RecordId

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • WithError Boolean

    true (default) throws error, false ignore errors

  • Returns RecordId

    The converted value


ToDateFormula

procedure ToDateFormula(value: text): DateFormula

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • Returns DateFormula

    The converted value


ToDateFormula

procedure ToDateFormula(value: text; WithError: Boolean) return: DateFormula

Convert Text to Type, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • WithError Boolean

    true (default) throws error, false ignore errors

  • Returns DateFormula

    The converted value


ToFieldRef

procedure ToFieldRef(value: text; var FldRef: FieldRef)

Convert Text to FieldRef, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • FldRef FieldRef

    The fieldRef to insert the value: Must be evaluated from a RecRef


ToFieldRef

procedure ToFieldRef(value: text; WithError: Boolean; var FldRef: FieldRef)

Convert Text to FieldRef, default throws error, if no error is needed, use the overload (value:text;WithError:Boolean)

Parameters / Return Value

  • value text

    the value in text

  • WithError Boolean

    true (default) throws error, false ignore errors

  • FldRef FieldRef

    The fieldRef to insert the value: Must be evaluated from a RecRef


SetFormatType

procedure SetFormatType(number: Integer)

Parameters / Return Value

  • number Integer

FromXMLFormat

procedure FromXMLFormat() ret: Codeunit "EOS004 Convert"

Parameters / Return Value

  • Returns Codeunit "EOS004 Convert"


EOS Labs -