Description

DIFFReportW32 and DIFFDataReportW32 compare the design or data of two databases and write the results to a log.

Syntax

status = DIFFReportW32( <Left>, <Right>, <Report>, <Title>, <Template>, <Filter>, <Flags> )
status = DIFFDataReportW32( <Left>, <Right>, <Report>, <Title>, <View>, <Template>, <Filter>, <Flags> )

Parameters

Parameterinput/OutputTypeDescription
LeftInputStringThe path to the first of the databases to be compared. Separate the server and pathname with !!
RightInputStringThe path to the second of the database to be compared. Separate the server and pathname with !!
ReportInputStringThe path to the Notes database where the comparison report will be written. Separate the server and pathname with !!
TitleInputStringThe title to use if the report database needs to be created.
ViewInputStringDIFFDataReportW32 only. The name of the view to be used to find and sort the documents to be compared. This view must be present in both databases.
TemplateInputStringThe path to the template to use if the report database needs to be created. If you provide an empty string ("") then the default template, tmslogs.ntf will be used.
FilterInputStringReserved for future use. Must be "".
FlagsInputLongA combination of the DBDIFF_FLAG_xxx values below.

Flags

FlagDescription
DBDIFF_FLAG_SILENTPrevents UI feedback.
DBDIFF_FLAG_SINGLEProduces one large report document rather than using response documents. Only suitable for comparing small databases.
DBDIFF_FLAG_SMART_FILTERUse the Delta Smart Filter.
DBDIFF_FLAG_HIDE_ID_OBJECTHides identical objects.
DBDIFF_FLAG_HIDE_PROPHides properties.
DBDIFF_FLAG_HIDE_ID_PROPHides identical properties.
DBDIFF_FLAG_DEFAULTDefault options. Includes all of the other options except for DBDIFF_FLAG_HIDE_PROP.

Return Value

Return value
Type
Description
statusLongZero (0) indicates that no error occurred. If the return value is non-zero, use DIFFStringLoadW32 to get the error message associated with the error code.

Examples

status = DIFFReportW32(
	"db1.nsf",_
	"db2.nsf",_
	"report.nsf",_ 'Database for output report
	"Delta Report",_ 'Title to use if report.nsf needs to be created
	"",_ 'Use the default tmslogs.ntf template if report.nsf needs to be created
	"",_ 'Not used, must be empty
	DBDIFF_FLAG_SILENT + DBDIFF_FLAG_SMART_FILTER)
status = DIFFDataReportW32(
	"db1.nsf",_
	"db2.nsf",_
	"report.nsf",_ 'Database for output report
	"Delta Report",_ 'Title to use if report.nsf needs to be created
	"vwSelect",_ 'Name of view to select and sort documents to be compared
	"",_ 'Use the default tmslogs.ntf template if report.nsf needs to be created
	"",_ 'Not used, must be empty
	DBDIFF_FLAG_SILENT + DBDIFF_FLAG_SMART_FILTER)