NTPGetFieldType ( <ReportName>, <FieldNr>, <FieldTypeBuffer> ) -> <ErrorCode>
Description
Retrieves the "n-th" field type in a report definition. This function reads the field type from a report definition that has been saved on the file system. In order for the selected field type to be recorded, a buffer (<FieldTypeBuffer>) produced by Lotus Script must be passed to the command. If a field type is to be read from a report saved in a Notes database, use the function NTPGetFieldTypeFromDatabase instead.
Declaration for Lotus Script
Declare Function NTPGetFieldType Lib "NTP.DLL" ( ByVal ReportName As String, ByVal FieldNr As Long, FieldTypeBuffer As String ) As Long
Parameters
<ReportName> (STRING)
The name of the report in which a field type is to be retrieved.
<FieldNr> (LONG)
The number of the field of which the type is to be retrieved.
<FieldTypeBuffer> (STRING)
Buffer to accept the field type 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)