You'll need to pass the step object to a COM component as a variant as the method requires strongly typed variables. here is the code for a method in a VB6 DLL.....
Public Function GetErrorText(poStep)
Dim lErrorCode As Long
Dim sErrorSource As String
Dim sErrorDescription As String
poStep.GetExecutionErrorInfo lErrorCode, sErrorSource, sErrorDescription
GetErrorText = lErrorCode & " | " & sErrorSource & " | " & sErrorDescription
End Function
Trey Johnson | Chief Business Intelligence Architect | Cizer Software (www.cizer.com)
Who? - Cizer - http://www.cizer.com/about.htm - Blog - http://www.sqlserverbi.com/
What? - Products enhancing Microsoft Business Intelligence - http://www.cizer.com/products.htm
Wow! - Empower your Developers.... NEW Drop In Reporting - http://www.cizer.com/cnr-drop-in-reporting.htm
How? - BI Training - http://www.cizer.com/training.htm - Cizer Solutions - http://www.cizer.com/solutions.htm