Run Method

Runs or previews a file in a project.

Object.Run( )

Remarks

Remarks

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.

See Also

QueryAddFile Event | QueryModifyFile Event | QueryRunFile Event | QueryRemoveFile Event

Applies To: File Object