Returns the number of fields in the input records.
HRESULT STDMETHODCALLTYPE GetFieldCount(OUT DWORD *pnFields);
nFields = GetFieldCount();
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
© 2004 Microsoft Corporation. All rights reserved.