GetFieldCount Method
Returns the number of fields in the input records.
C++ Syntax
HRESULT STDMETHODCALLTYPE GetFieldCount(OUT DWORD *pnFields);
Script Syntax
nFields = GetFieldCount();
Return Value
An integer value containing the number of fields in the input records.
Examples
C++ example:
HRESULT CProcessesInputContext::GetFieldCount( OUT DWORD *pnFields ) { // This Input Context exports 4 fields *pnFields = 4; return S_OK; }VBScript example:
Function GetFieldCount() ' This Input Format returns 4 or 6 fields If m_bExtendedFields = True Then GetFieldCount = 6 Else GetFieldCount = 4 End If End Function
See also:
ILogParserInputContext InterfaceRun Time Interaction
Custom Plugins