Run Method (Visual FoxPro)
Runs or previews a file in a project.
Applies To: File Object
The Run method returns true (.T.) if the file is successfully run or previewed; otherwise false (.F.) is returned. Labels and reports are previewed by the Run method.
The QueryRunFile event occurs before the file is run or previewed. If NODEFAULT is specified in the QueryRunFileEvent, the file isn't run or previewed and the Run method returns false (.F.). Otherwise, the file is run or previewed and the Run method returns true (.T.).
Include NODEFAULT in the QueryRunFile event to prevent a file from being run or previewed.