PreviewFindReset - cDRReport¶
Methods - Properties - Events
Method Type¶
Procedure
Arguments¶
None
Description¶
Resets the find operation. The next PreviewFind can begin at the top of the report results.
This method cannot be used before the report OCX object is initialized. The COM object creation is performed as part of the OpenReport method if it has not been done beforehand.
DataFlex Framework usage¶
- Windows
- Windows controls in a FlexTron application
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
Send RunReport of oReport
End_Procedure
End_Object
Object oTextForm is a Form
Set Label to "Search:"
Set Location to 5 50
End_Object
Object oDownCheckbox is a Checkbox
Set Location to 20 50
Set Label to "Down"
End_Object
Object oWholeWordCheckbox is a Checkbox
Set Location to 35 50
Set Label to "Whole Word"
End_Object
Object oMatchCaseCheckbox is a Checkbox
Set Location to 40 50
Set Label to "Match Case"
End_Object
Object oFindButton is a Button
Set Label to 'Find'
Procedure OnClick
String sText
Boolean bDown bWholeWord bMatchCase bFound
Get Value Of oTextForm to sText
Get Checked_State of oDownCheckbox to bDown
Get Checked_State of oWholeWordCheckbox to bWholeWord
Get Checked_State of oMatchCaseCheckbox to bMatchCase
Get PreviewFind of oReport sText bDown bWholeWord bMatchCase to bFound
If (bFound) Begin
Send PreviewPaint of oReport
End
Else Begin
Send PreviewFindReset
Get PreviewFind of oReport sText bDown bWholeWord bMatchCase to bFound
If (bFound) Begin
Send PreviewPaint of oReport
End
End
End_Procedure
End_Object