NTPGetFieldCount

 

NTPGetFieldCount ( <ReportName> ) -> <FieldCount>

 

 

Description

 

Retrieves the number of fields within a report definition. This function accesses a report saved as a file in the report directory. If you are trying to retrieve the number of fields contained in a report saved in a Notes database, use the function NTPGetFieldCountFromDatabase. The number of fields is returned by <FieldCount>.

 

 

Declaration for Lotus Script

 

Declare Function NTPGetFieldCount Lib "NTP.DLL" ( ByVal ReportName As String ) As Long

 

 

Parameter

 

<ReportName> (STRING)

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

 

 

Return value

<FieldCount> (LONG)

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