Partilhar via


CurrentDataSession Property

Provides the ReportListener with the datasession ID of a report’s data during the execution of a LABEL or REPORT FORM command. This datasession may be a private datasession, opened by the Report Engine for the report run, or a datasession shared with the form or application that issued the command.

ReportListener.CurrentDataSession 

Return Value

Integer data type.

The default value is 1 (the ID of the default datasession).

Remarks

Applies To: ReportListener Object.

If the report opens its data in a private datasession, the Report Engine creates this session after the LoadReport event and before the BeforeReport event. The private datasession closes before the UnloadReport event.

For information about when the native Report System components assigns this value and other reporting attributes at the beginning and end of a report run, see Understanding Visual FoxPro Object-Assisted Reporting.

See Also

Tasks

How to: Specify a Report's Data Session

Reference

ReportListener Object Properties, Methods, and Events
SET DATASESSION Command

Other Resources

Properties (Visual FoxPro)
Language Reference (Visual FoxPro)