NTPGetFieldCountFromDatabase

 

NTPGetFieldCountFromDatabase ( <ReportName>, <ServerName>, <DatabaseName> ) -> <FieldCount>

 

 

Description

 

Finds the number of fields contained in a report definition for report definitions saved in Notes databases. If you are trying to retrieve the number of fields contained in a report saved on the file system as a file, use the function NTPGetFieldCount. The <ErrorCode> return value is equal to the number of fields contained in the report.

 

 

Declaration for Lotus Script

 

Declare Function NTPGetFieldCountFromDatabase Lib "NTP.DLL" ( ByVal ReportName As String, ByVal ServerName As String, ByVal DatabaseName As String ) As Long

 

 

Parameter

 

<ReportName> (STRING)

Name of the report in which the number of fields is to be counted.

 

<ServerName> (STRING)

Name of the server the database is located on. If an empty string is passed, the database is assumed to be local. The server name should be passed in the form passed by the "NotesDatabase" class.

 

<DatabaseName> (STRING)

Name of the database containing the report definition. The database name may contain sub-directories and must be given relative to the Notes data directory (e.g. "Demo\Ntp.Nsf").

 

 

Return value

 

<ErrorCode> (LONG)

A negative return value signals an error, whereby a positive value stands for the number of fields in the report definition.