Skip to content

DRDate - cDRReport

Methods - Properties - Events

Method Type

Function

Return Type

String

Arguments

Argument Description
dtValue DateTime value to be used inside the compare expression that is built.

Description

Returns a string containing a call to the DateSerial conversion function available in the function expression evaluator.

DataFlex Framework usage

  • Web
  • Windows
  • FlexTron

Sample

Object oReport is a cDRReport
    Set psReportName to 'MyReport.dr'
End_Object

Object oRunReportButton is a Button
    Set Label to 'Run Report'

    Procedure OnClick
        String sReportId sCompare sFunction

        Get OpenReport of oReport to sReportId
        Get DRDate of oReport 04/01/2010 to sCompare
        Move ('return ({product.release} = ' + sCompare + ')') to sFunction
        Set psFilterFunction of oReport sReportId to sFunction
        Send OutputReport of oReport
    End_Procedure
End_Object

Notes