Reports for WinForms | ComponentOne
C1.C1Report.4 Assembly / C1.C1Report Namespace / CompatibilityOptions Class / OldTypesConversion Property

In This Topic
    OldTypesConversion Property
    In This Topic
    Gets or sets a value indicating whether to use the old method of type conversion in report script functions CStr, CDbl and CDate.

    The default is false. See remarks for details.

    Syntax
    'Declaration
     
    Public Property OldTypesConversion As Boolean
    public bool OldTypesConversion {get; set;}
    Remarks
    In versions of C1Report prior to 2012 v1, the following rules were used by type conversion script functions CStr, CDbl, CDate:
    • CStr used Application.CurrentCulture.
    • CDbl used InvariantCulture, if that failed Application.CurrentCulture was used.
    • CDate used InvariantCulture.
    Starting with the 2012 v1 release, the rules changed to:
    • CStr uses Application.CurrentCulture.
    • CDbl and CDate use Application.CurrentCulture, if that fails then InvariantCulture is used.
    See Also