TDataKindConvert
Convert TDataItem between different data kinds (types). Location:BI.Convert.pas:28
Methods
CanConvert
Convert
Usage Examples
Convert Integer to Text
Convert Text to Numbers
Convert with Precision
Safe Conversion
Conversion Rules
To Integer:- Float values are rounded
- Text must be valid integer
- Boolean: True=1, False=0
- Integers convert exactly
- Text must be valid number
- DateTime converts to days
- All types can convert to text
- Uses default formatting
- 0 = False, non-zero = True
- Text: ‘true’/‘false’ (case-insensitive)
- Numbers convert to days
- Text must be valid date/time
TDateTimeConvert
Convert between DateTime and component structures (Year, Month, Day, etc.). Location:BI.Convert.pas:38
Methods
ToTable
ToDateTime
Usage Examples
Expand DateTime to Components
Combine Components to DateTime
Extract Time Components
Round-Trip Conversion
Component Fields
When converting to table, these fields are created:- Day: 1-31
- Month: 1-12
- Year: Full year (e.g., 2024)
- Hour: 0-23
- Minute: 0-59
- Second: 0-59
- Millisecond: 0-999
