company logo

Value :: toInteger - Convert to integer value

The function returns the integer (int32) value for the value handle or for the property passed to the function. When the field definition refers to a value with decimal precisions, the value returned contains only the part before the decimal point. In order to get the exact value valueNormalized() can be called.

When no instance is selected or the value cannot be converted into an integer value, the function throws an exception.

Return value:  Integer value ( int32  )

The value is passed as platform independent 32-bit integer value.

Implementation overview

Implementation details

  1. Get integer value from current value
    int32 Value  :: toInteger (  )

    This function provides an integer value from current value handle.

  2. to list
  3. Get integer value for passed property
    int32 Value  :: toInteger ( odaba::String &vSimplePath )

    The function returns the integer value for the propertywith the name passed in vSimplePath. When no property exists with the passed name the function throws an exception.

    This is a short form for value(vSimplePath).toInteger().

    • vSimplePath - Simple property path

      A simple property path may contain an extent or property name but also a sequence of property names separated by dot. A simple property path must not contain parenthesis or preceding dots.

  4. to list