DRDate - cDRReport¶
Methods - Properties - Events
Method Type¶
Function
Return Type¶
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¶
- The result of this function cannot be used with the psFilterValue property or the AddFilter method and is written specifically for the psFilterFunction operation.
- Filtervalue offloading to a server or index cannot be done if functions are used inside the psFilterFunction; it is better to use DateToString or DateTimeToString.