IsFileList - cDRReport¶
Methods - Properties - Events
Method Type¶
Function
Return Type¶
BooBooleanlean
Arguments¶
| Argument | Description |
|---|---|
sFileName |
Name of the file that is being tested being the filelist or not. |
Description¶
This function can be overridden by a developer. This event is sent during the OpenReport method when pbAutoLocateDFFiles is set to true.
By default, the function returns true when the file extension of the passed filename is .cfg. If the workspace uses a filelist that does not have the .cfg extension or has a completely different name, this function can be overridden to return true for the workspace situation.
Do not write a function that returns true if the file is not a DataFlex filelist.
DataFlex Framework usage¶
- Web
- Windows
- FlexTron
Sample¶
Object oReport is a cDRReport
Set psReportName to 'MyReport.dr'
Function IsFileList String sFileName Returns Boolean
If (sFilename Contains 'TableOfFiles') Begin
Function_Return True
End
End_Function
End_Object