NTPGetFieldName ( <ReportName>, <FieldNr>, <FieldNameBuffer> ) -> <ErrorCode>
Description
Retrieves the "nth" field name in a report definition. In order for the selected report name to be recorded, a buffer produced by Lotus Script must be passed to the command. This function reads a field name contained in a report definition saved on the file system. If a field name is to be read from a report saved in a Notes database, use the function NTPGetFieldNameFromDatabase instead.
Declaration for Lotus Script
Declare Function NTPGetFieldName Lib "NTP.DLL" ( ByVal ReportName As String, ByVal FieldNr As Long, FieldNameBuffer As String ) As Long
Parameter
<ReportName> (STRING)
Name of the report in which a field name is to be read.
<FieldNr> (LONG)
Number of the field whose name is to be read.
<FieldNameBuffer> (STRING)
Buffer to accept the field name read. The buffer must be created by using Lotus Script (e.g. Buffer = Space ( 255 ) )
Return value
<ErrorCode> (LONG)
Number of the error encountered (0 = no error)